Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point selection by dragging and unselect by clicking does not work in one condition #2793

Open
PT10 opened this issue Jun 15, 2020 · 0 comments

Comments

@PT10
Copy link
Contributor

PT10 commented Jun 15, 2020

  • C3 version: 0.7.15 (latest)
  • D3 version:5.16.0
  • Browser:Chrome/Safari
  • OS:Mac OS 10.14.5

There is a definite issue with the data point selection support. My data series has some selectable and some non selectable data points. I select the data points with a mouse drag to select few points. Now if I try to unselect them by clicking on them then they don't get unselected. However if I stick to the same method for unselect i.e. to drag the mouse again then the points get unselected.

Also note that the behaviour is observed only when the data series has a combination of selectable and non selected points. If the entire series is selectable then the issue is not observed.

On deeper analysis I found out that actually the unselect event is getting triggered and the point is no more in the selected list but the circle which surrounds the point stays there. Hence it is an issue with the select circle.

Here is the Stackblitz demo and the code. #c3-chart-error

Here all points above 5 are selectable. Please follow the below steps to reproduce the issue.

  1. Mouse drag/drop on points above value 5 to select them. (one or more)
  2. Click on the selected point. The circle doesn't go away.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant