双向barecharts 柱状配置项内容和展示

配置项如下
       var dataAll = [
            [30,14,28,49,60,9,44],
            [2,7,3,2,0,1,8]
        ];


        option = {
            color: ['#3398DB'],
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器,坐标轴触发有效
                    type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
                }
            },
            legend: {
                data: ['bar', 'bar2'],
                align: 'left'
            },
            grid: [
                {x: '7%', y: '7%', width: '78%', height: '38%'},

                {x: '7%', y2: '12.3%', width: '78%', height: '38%'},

            ],
            xAxis : [
                {gridIndex: 0, data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],  axisTick: {show: false},nameGap:'50'},
                {gridIndex: 1, data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],axisLabel:{show:false},axisTick: {show: false},},
            ],
            yAxis : [
                {gridIndex: 0, min: 0, max: 60,splitLine:{lineStyle:{type:'dashed'}}},
                {gridIndex: 1, min: 0, max: 10,inverse:true,splitLine:{lineStyle:{type:'dashed'}}},
    
            ],
            series : [
                {
                    name: 'bar',
                    type: 'bar',
                    xAxisIndex: 0,
                    yAxisIndex: 0,
                    data: dataAll[0],
                    itemStyle:{normal:{color:new echarts.graphic.LinearGradient(
                      0, 1, 0, 0,
                    [
                        {offset: 1, color: 'rgb(199,154,180)'},   
                        {offset: 0, color: 'rgb(143,139,209)'}
                    ]
                 )}},
                    barWidth:20,

                    label: {
                        normal: {
                            show: true,
                            position: 'top'
                        }
                    },
                },
                {
                    name: 'bar2',
                    type: 'bar',
                    xAxisIndex: 1,
                    yAxisIndex: 1,
                    data: dataAll[1],
                    itemStyle:{normal:{color:new echarts.graphic.LinearGradient(
                      0, 1, 0, 0,
                    [
                        {offset: 1, color: 'rgb(210,184,206)'},   
                        {offset: 0, color: 'rgb(230,176,176)'}
                    ]
                 )}},
                    barWidth:20,
                    label: {
                        normal: {
                            show: true,
                            position: 'bottom'
                        }
                    },
                },
            ]
        };
    
截图如下