echarts 柱状配置项内容和展示

配置项如下
      option = {
    color: ['#3398DB'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // 坐标轴指示器,坐标轴触发有效
            type: 'line'        // 默认为直线,可选为:'line' | 'shadow'
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [
        {
            type: 'category',
            data: [2012, 2013, 2014, 2015, 2016, 2017, 2018,2019],
            axisTick: {
                alignWithLabel: true
            }
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '# of Grants',
            type: 'bar',
            barWidth: '60%',
            data: [42, 38, 38, 50, 90, 155, 156,182]
        }
    ]
};

    
截图如下