数据缩放x轴数据停留

橙汁_Juice 发布于 02/27 20:35
阅读 23
收藏 0

数据缩放时,x轴数据停留,拖动慢点可偶现该bug

测试网址

https://echarts.baidu.com/examples/editor.html?c=line-simple

测试数据

option = {"title":{"text":"5.36 ","x":"center","align":"right"},"tooltip":{"trigger":"axis","show":true,"axisPointer":{"type":"cross","crossStyle":{"color":"#999"}}},"toolbox":{"x":"800","feature":{"saveAsImage":{"show":true}}},"grid":{"left":150,"bottom":100},"legend":{"data":["最小值","最大值","平均值"],"x":"center","bottom":40,"selected":{"最小值":false,"最大值":false}},"xAxis":[{"type":"category","data":["2017-01","2017-02","2017-03","2017-04","2017-05","2017-06","2017-07","2017-08","2017-09","2017-10","2017-11","2017-12","2018-01","2018-02","2018-03","2018-04","2018-05","2018-06"],"axisPointer":{"type":"shadow"}}],"yAxis":[{"type":"value","name":"时间","scale":false,"minInterval":1,"axisLabel":{"formatter":"{value} 分钟"}}],"series":[{"name":"最小值","type":"line","data":[0,0,0,0,0,0,0,1,-10,0,0,0,0,0,0,0,0,0],"clipOverflow":false},{"name":"最大值","type":"line","data":[0,0,0,0,0,0,0,19,1500,0,0,0,0,0,0,0,0,0],"clipOverflow":false},{"name":"平均值","type":"line","data":[0,0,0,0,0,0,0,7,745,0,0,0,0,0,0,0,0,0],"clipOverflow":false,"markLine":{"data":[{"name":30,"yAxis":30}]},"itemStyle":{"normal":{"label":{"show":true}}}}],"dataZoom":[{"type":"slider","show":true,"start":0,"end":35,"handleSize":8,"maxValueSpan":10,"bottom":"10px","zoomLock":true}]}

 

第三张图的x坐标2017-12 有条竖线,不应该显示,第2张图2017-10显示竖线可以理解,因为2017-09 是大数据,

但第3张图的前一个数据2017-11, 2017-10 y都是0。拖动慢点可偶现该bug。

 

加载中
返回顶部
顶部