组合柱形图

描述:当前是关于Echarts图表中的 柱状图 示例。
 
             option = {
                  backgroundColor:'#333',
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    },
                    backgroundColor: 'rgba(11, 41, 116, 0.7)',
                    borderColor: 'rgba(11, 41, 116, 0.7)',
                    textStyle: {
                        color: '#fff',
                    }
                },
                legend: {
                    right: '5% ',
                    top: '10%',
                    itemGap: 20,
                    itemWidth: 14,
                    itemHeight: 14,
                    textStyle: {
                        color: '#fff',
                    }
                },
                textStyle: {
                    color: '#fff',
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis: [

                    {
                        type: 'category',
                        data: ['一号矿', '二号矿', '三号矿业', '四号矿业'],
                        nameTextStyle: {
                            color: '#fff',
                        },
                        splitLine: {
                            show: true,
                            lineStyle: {
                                color: '#0F163C'
                            }
                        }
                    }
                ],
                yAxis: [
                    {
                        name: '台数',
                        type: 'value',
                        splitLine: {
                            show: true,
                            lineStyle: {
                                color: '#0F163C'
                            }
                        }
                    }
                ],
                series: [

                    {
                        name: '在用',
                        type: 'bar',
                        stack: 'Ad',
                        emphasis: {
                            focus: 'series'
                        },
                        data: [120, 132, 101, 134]
                    },
                    {
                        name: '闲置',
                        type: 'bar',
                        stack: 'Ad',
                        emphasis: {
                            focus: 'series'
                        },
                        data: [220, 182, 191, 234]
                    },
                    {
                        name: '待修',
                        type: 'bar',
                        stack: 'Ad',
                        emphasis: {
                            focus: 'series'
                        },
                        data: [150, 232, 201, 154]
                    },


                ]
            };