You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/12/01 08:27:15 UTC

[GitHub] [incubator-echarts] zzoath2017 commented on issue #12697: 散点图开启大数据优化,brush无法正常返回选取的数据

zzoath2017 commented on issue #12697:
URL: https://github.com/apache/incubator-echarts/issues/12697#issuecomment-736307702


   > > > 1、outOfBrush即使取消默认color:'#ddd'的配置仍然会重绘。
   > > > 2、数据量大时散点框选brushSelected回调中无法返回数据点
   > > 
   > > 
   > > @cyberlaugh 我现在有一个办法可以获取数据点,brush的回调事件中,可以找到框选线的X范围和Y范围。已知散点的坐标,假设框选线坐标起始点是X1和X2,去判断X在X1X2范围内的点的Y坐标是否也在Y1Y2之间,满足,则在选取框范围内,就可以获取选取框的点了,其实就是一个平面坐标系判断位置
   > 
   > @zhutianlong95 感谢您的分享,目前我们也是根据coordRange自己写算法,有维持任意形状多次刷选的情况,比矩形X1X2的情况要复杂,不过已经实现。但是重绘问题无法解决,还是希望echarts后续版本能解决提到的两点问题。
   
   大佬,可否分享一下多边形的算法,数据多的时候应该有点延迟吧


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org