Replies: 2 comments
-
and a quick play around makes it seem like the events are passed through to bars succesfully, just aren't documented. Will explore further. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok looks like you can add a drop ref to the chart itself, but not individual bars in the graph. Looking at using OnMouseMove on each element to do a setState + a drop on the graph itself. Might need to disable mouse events on the dragged item so the mouse move works on the graph |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to be able to drag items to bars on the graph, I'd suspect I'd need a onDrop event on the bar but equally a ref would probably also work and likely be easier.
I see that bars support onClick, onMouseDown etc but haven't seen any sign of ref and/or drag events.
Was surprised to see no one else asking similar questions.
Beta Was this translation helpful? Give feedback.
All reactions