Realizing the background color of column chart with echarts

clipboard.png

you can use barGap:"- 100%"to implement
, but how to use
if there are multiple entries in a category that cannot be implemented with barGap?

Mar.03,2021

I happen to encounter this problem. I achieve a similar effect by stacking bar charts:
series: [

            {
                name:'',
                type:'bar',
                stack: '',
                data:yData,
                barWidth: 12,
                itemStyle: {
                    normal: {
                        color: "gray",
                    }
                },
            },
            {
                name:'',
                type:'bar',
                stack: '',
                data:jianData,//max
                barWidth: 12,
                itemStyle: {
                    normal: {
                        color: "-sharp003451",
                    }
                },
            }
        ]
Menu