Incubator-echarts: 散点图区域选择部分点不能被选中(只能选中400个点)

Created on 5 Feb 2019  ·  5Comments  ·  Source: apache/incubator-echarts

General Questions

Issue Type

  • [ ] I have a question to ask about how to use ECharts to ...;我想提问如何使用 ECharts 实现某功能
  • [x] I have a bug to report;我想要报 bug
  • [ ] I have a feature to request, e.g.: I'd like a new feature that ...;我需要一个新功能
  • [ ] I have a feature to enhance, e.g.: The current feature should be improved in the way that ...;我希望改进某个功能
  • [ ] There's something wrong with the documents;文档有些问题
  • [ ] Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型

Issue Details

简单描述问题:

散点图区域选择部分点不能被选中, 包括矩形选择,Polygon选择,X轴选择,Y轴选择

预期效果:

image

实际效果:

image

无论怎么选择,只能选中361个点。这个数字是通过brushselected回调函数中的params中的dataIndex数组中得到。
Total : 3143
Selected : 361

当把数据从3143降到3000时,还是同样的效果,只能选中361。
当把数据从3000降到2999时,选中的数量变为2591。

数量3143的时候的debug截图:ItemLayout数组为 400
image

数量2999的时候的debug截图:ItemLayout数组为 2999
image

请问有什么建议吗?

在该例子3143组数据中,横坐标的数值没有空值,纵坐标的数值有425个为null.

Environment

  • ECharts version;ECharts 版本: 4.2.1
bug pending

Most helpful comment

Hi , @100pah @Ovilia 通过看源码找到问题所在了,在4.2.1的echarts.js中的第19915,19916行,应该是为了效率考量,所以当数据量超过3000的时候分批成400一批去处理,但是程序有bug只处理了第一次。
我暂时将3000改为5000,我这边的问题可以暂时解决,请尽快修正这个bug。

All 5 comments

应该是和 #9605 同样的问题。
刚刚试了4.1版本有同样问题,4.0版本没有问题。

In the exampe of 4.2.1, all 600 points can be selected

Please increase your data to 3000, and test it once again.

Hi, @100pah 请问这个bug有修复计划吗?

Hi , @100pah @Ovilia 通过看源码找到问题所在了,在4.2.1的echarts.js中的第19915,19916行,应该是为了效率考量,所以当数据量超过3000的时候分批成400一批去处理,但是程序有bug只处理了第一次。
我暂时将3000改为5000,我这边的问题可以暂时解决,请尽快修正这个bug。

Was this page helpful?
0 / 5 - 0 ratings