区间柱状图22222

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            option = {
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        type : 'category',
        splitLine: {show:false},
        data : ['总费用','房租','水电费','交通费','伙食费','日用品数']
    },
    yAxis: {
        type : 'value'
    },
    series: [
        {
            name: '生活费',
            type: 'bar',
            stack: '总量',
            label: {
                normal: {
                    show: true,//是否显示
                    position: 'top',//文字位置
                    formatter: '10-20'//c后面加单位
                    
                }
            },
            data:[2900, 1200, 300, 200, 900, 300]
        }
    ]
};