ECharts画多条线图有问题,请看所示的option
示例的option中水压力1差不多应该是一条直线,可是出现显示不对。
请把水压力2隐藏看看区别。
如果series中,水压力1的数据排在第一个,则画图没有问题
option = {
title: {
text: ''
},
tooltip: {
trigger: 'axis'
},
legend: {
data:['水压力2','水压力1']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ["2018-01-16 12:23", "2018-01-16 12:24", "2018-01-16 12:25", "2018-01-16 12:26", "2018-01-16 12:27", "2018-01-16 12:28", "2018-01-16 12:29", "2018-01-16 12:30", "2018-01-16 12:31", "2018-01-16 12:32", "2018-01-16 12:33", "2018-01-16 12:34", "2018-01-16 12:35", "2018-01-16 12:36", "2018-01-16 12:37", "2018-01-16 12:38", "2018-01-16 12:39", "2018-01-16 12:40", "2018-01-16 12:41", "2018-01-16 12:42", "2018-01-16 12:43", "2018-01-16 12:44", "2018-01-16 12:45", "2018-01-16 12:46", "2018-01-16 12:47", "20
2022-01-15 09:39:54