我这边有两条折线,发现最上面那条折线图的值没有真正显示在y轴上,比如最上面的第一个点,值是30,为什么点要在y轴50上呢?我想显示在y轴30上,该怎么弄呢?
option = {
title: {
text: '折线图堆叠'
},
tooltip: {
trigger: 'axis'
},
legend: {
data:['张三','李四']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['1','2','3','4','5','6','7','8','9']
},
yAxis: {
type: 'value'
},
series: [
{
name:'张三',
type:'line',
stack: '总量',
data:[20, 17.6, 12.5, 9.7, 7.9, 6.7, 5.8, 5.1, 4.6]
},
{
name:'李四',
type:'line',
stack: '总量',
data:[30, 14.38, 4.79, 13.01, 15.07, 13.7, 6.85, 2.05, 4.79]
}
]
};