Closed ErikWittern closed 3 years ago
Retrying actually resolved this issue, things are now working with the above setup, so I am closing this.
Here is what I think went wrong: I am using WebPack with hot module replacement, and did not implement onDrag
etc. callbacks when initially loading the page. The code changes to introduce onDrag
etc. were then not properly reflected due to the hot module replacement, and only started working after a hard reload of the page.
Hi there!
I am trying to use chartjs-plugin-dragdata in combination with react-chartjs-2. My setup is as follows:
With that setup, the radar chart is rendered as expected, and I am able to drag its points around quite beautifully. However, the handlers
onDrag
,onDragStart
, andonDragEnd
are never called (i.e., there is no console output in the browser).This could possibly also be an issue of
react-chartjs-2
- or maybe I am doing something obviously wrong?