c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.35k stars 1.39k forks source link

Removing pre filter on drag and applying it while points traversal #2795

Closed PT10 closed 4 years ago

PT10 commented 4 years ago

Fix for the issue #2793

Because of the pre filter the index for the point was coming incorrect in mouse drag handler. Removed the filter and applied the check for isselectable inside the each loop.

PT10 commented 4 years ago

Also realised that the points selected using drag were not getting unselected with chart.unselect API if the series has a combination of selectable and non selectable points. That problem also will get fixed with this change.