Open shochu-hiracchi opened 1 year ago
ecise dragging is required when moving points within a radar chart.
Thanks @shochu-hiracchi for raising an issue!
This is indeed a bug. Without digging into this, I'm assuming that this is due to our custom logic in the calcRadar
method https://github.com/chrispahm/chartjs-plugin-dragdata/blob/master/src/index.js#L78. Since v3, Chart.js does expose a getValueForPixel
method for Radar charts, which potentially does not have this issue. I'm currently tight for time, but happy to accept a PR that updates the method.
@chrispahm I've provided a PR for this =)
If you pass from the center point, the point will stretch in the opposite direction, and so on.
What I want to do is in the second table. Dragging only operates within the axis and has no effect on other axes. (It does not extend to the other side even if it passes the center.