对比了好多次,写的没问题啊,但是为啥是并排显示的。。提问区的方法也没用啊~
chart.setOption({
xAxis: {
type: "value",
show: false,
},
yAxis: {
type: "category",
show: false,
},
series: [
{
type: "bar",
stack: "总量",
data: [200],
barWidth: 10,
},
{
type: "bar",
stack: "总量",
data: [250],
},
],
grid: {
top: 0,
left: 0,
bottom: 0,
right: 0,
},
});