格式化横轴

描述:当前是关于Echarts图表中的 折线图 示例。
 
            option = {
    title: {
        text: 'Awesome Chart'
    },
    tooltip: {
        show: true,
        trigger: "axis"
    },
    xAxis: {

        axisLabel: {
            interval: 0,
            formatter: function(value) {
                //判断开始数据最接近5还是0结尾
                if (/[5]$/.test(value)) {
                    return value;
                } else {
                    return "";
                }
            }
        },
        data: [
            "$16:05", '',
            '', '',
            '', '$16:10',
            '', '',
            '', '',
            "$16:15", '',
            '', '',
            '', '$16:20',
            '', '',
            '', '',
            "$16:25", '',
            '', '',
            '', '$16:30',
            '', '',
            '', '',
            "$16:35", '',
            '', '',
            '', '$16:40',
            '', '',
            '', '',
            "$16:45", '',
            '', '',
            '', '$16:50',
            '',
            '', '',
            "$17:00", '',
            '', '',
            '', '$17:05',
            '', '',
            '', '',
            "$17:10", '',
            '', '',
            '', '$17:20',
            '', '',
            '', '',
            "$17:25", '',
            '', '',
            '', '$17:30',
            '', '',
            '', '',
            "$17:35"
        ]
    },
    yAxis: {},
    series: [{
        type: 'line',
        data: [220, 182, 191, 234, 290, 330, 310, 220, 182, 191, 234, 290, 330, 310, 220, 182, 191, 234, 290, 330, 310]
    }]
};