Closed ralph-cheng closed 1 month ago
@pissang @LonHon @deqingli @100pah Any Update in this issue, I am also facing this issue in Sankey chart DataZoom level function, And if the DataZoom consider without xAxis and yAxis values binding ,How can we give Zoom in and Zoom out in Sankey Chart , Could you anyone help me out in this issue..
👍
v4.2.1.rc1版本里仍有这个问题,4.1.0里似乎修复了。 求解决
临时的解决方案是在dataZoom设置生效前,判断series是否为空。
@pissang @LonHon @deqingli @100pah Any Update in this issue, I am also facing this issue in Sankey chart DataZoom level function, And if the DataZoom consider without xAxis and yAxis values binding ,How can we give Zoom in and Zoom out in Sankey Chart , Could you anyone help me out in this issue..
我也遇到了这个问题,我在使用桑基图的时候,因为数据量的问题需要做横向滚动。请问有好的解决方案吗?
I also encountered this problem. When I was using Sankey, I had to do horizontal scrolling because of the amount of data. Is there a good solution?
临时的解决方案是在dataZoom设置生效前,判断series是否为空。
It definitely works. Grateful for your help.
English version: you should try to set dataZoom after series has been set.
Maybe i can take a look on that a make a pull request later.
Hi, I also encountered the same issue. I tried setting datazoom options after series has been set. No use. Here is my option for dataZoom. this.spec.dataZoom = [{ type: 'inside', zoomOnMouseWheel: false, moveOnMouseMove: true, moveOnMouseWheel: false, preventDefaultMouseMove: false }];
Below is the error that I am getting in browser console.
core.js:4127 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getDataPercentWindow' of undefined
TypeError: Cannot read property 'getDataPercentWindow' of undefined
at dataZoomProcessor.js:96
at Array.forEach (
me too,my echarts version is 4.9.0
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
One-line summary [问题简述]
更新已有chart数据时,调用
echartInstance.setOptions({dataZoom: [{show: true}], series: []}, true)
抛出异常。Version & Environment [版本及环境]
Expected behaviour [期望结果]
空白的chart,有没有dataZoom没关系,不应该有异常抛出。
ECharts option [ECharts配置项]
Other comments [其他信息]
重现示例见 http://gallery.echartsjs.com/editor.html?c=xrJW6oI-fG&v=2