catscarlet opened a new issue #11098: echarts 线图动态增加数据同时更新x轴min和max,datazoom后无法自动follow数据,需要手动拖动一次。 URL: https://github.com/apache/incubator-echarts/issues/11098 ### Version 4.2.1 ### Reproduction link [https://gallery.echartsjs.com/editor.html?c=xPG1pygeTn&v=1](https://gallery.echartsjs.com/editor.html?c=xPG1pygeTn&v=1) ### Steps to reproduce 详情见重现链接 - 需要用 xAxis 的 min 和 max 来实现线图前后的空白区域,空白区域前后均需要是现有数据的几倍 - 同时需要用 dataZoom 来实现放大和缩小(目的在于显示还没有数据的,由 min 和 max 生出的空白区域) - 同时首屏数据需要显示已有数据和一部分空白区域(依靠 dataZoom.startValue 和 dataZoom.endValue ) - 同时需要实现动态增加数据(依靠 data.push ) - 同时需要当前页数据 follow 新数据(依靠增加 xAxis 的 min 和 max 的值) ### What is expected? 新数据产生位置固定,图表整体产生向左滚动的效果。 ### What is actually happening? 首屏数据不不能跟随新数据滚动。 但是如果用鼠标拖动一下,或者鼠标缩放一下,图表就会跟随新数据滚动了。 --- 请问有什么办法让首屏数据就实现跟随新数据? <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org