柱状图示例echarts 柱状配置项内容和展示

https://segmentfault.com/q/1010000005137138

配置项如下
      var xAxisData = [];
var data = [];
for (var i = 9; i < 16; i++) {
    xAxisData.push('5月' + i + '日');
    data.push(Math.round(Math.random() * 500) + 200);
}
option = {
    title: {
        text: '柱状图示例',
        subtext: 'https://segmentfault.com/q/1010000005137138',
        sublink: 'https://segmentfault.com/q/1010000005137138'
    },
    xAxis: [{
        data: xAxisData,
        axisLabel: {
            textStyle: {
                color: '#03a9f4'
            }
        },
        splitLine: {
            show: false
        }
    }, {
        // 辅助 x 轴
        show: false,
        data: xAxisData  
    }],
    yAxis: {
        max: 1000,
        axisLine: {
            show: false
        }
    },
    series: [{
        // 辅助系列
        type: 'bar',
        silent: true,
        xAxisIndex: 1,
        itemStyle: {
            normal: {
                barBorderRadius: 20,
                color: '#ddd'      
            }
        },
        barWidth: 40,
        data: data.map(function (val) {
            return 1000;
        })
    }, {
        type: 'bar',
        data: data,
        barWidth: 40,
        itemStyle: {
            normal: {
                barBorderRadius: 20,
                color: '#03a9f4',
                shadowColor: 'rgba(0, 0, 0, 0.4)',
                shadowBlur: 20
            }
        }
    }]
};
    
截图如下