柱状图背景

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            option = {
    color: ['#27A5B8', 'rgba(39,165,184,0.1)'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {
        data: ['Forest', 'Steppe', 'Desert', 'Wetland']
    },
    // toolbox: {
    //     show: true,
    //     orient: 'vertical',
    //     left: 'right',
    //     top: 'center',
    //     // feature: {
    //     //     mark: {show: true},
    //     //     dataView: {show: true, readOnly: false},
    //     //     magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
    //     //     restore: {show: true},
    //     //     saveAsImage: {show: true}
    //     // }
    // },
    calculable: true,
    xAxis: [{
        type: 'category',
        axisTick: {
            show: false
        },
        data: ['2012', '2013', '2014', '2015', '2016']
    }],
    yAxis: [{
        type: 'value'
    }],
    series: [{
            name: 'Forest',
            type: 'bar',
            barGap: 0,
            barWidth: 44,
            // label: labelOption,
            data: [220, 182, 191, 234, 290]
        },
        {
            name: 'Steppe',
            type: 'bar',
            // label: labelOption,
            barGap: '-100%',
            barWidth: 64,
            data: [320, 332, 301, 334, 390]
        }
    ]
};