react-d3-components
react-d3-components copied to clipboard
Event support
Especially for mouse events like onClick and onContextMenu. Currently I have to wrap it in a div to catch those events.
Can you elaborate? What use cases etc
In my case, user needs to choose a data point from the chart and then perform actions on it. Currently when user left click on the chart, the focus lines will freeze and a dialog will appear showing additional information on that data point. When user click the chart again, the focus lines will unfreeze and the dialog will be closed. I have to keep track of the data through tooltipHtml since it is the only access to the selected data point.
Ideally, those events will trigger callbacks with the currently selected data along with the react event object.
I see, nice use case. I definitely want to integrate that.
Hi ! Any news on this ?
Hi! Planning to check next week on how to implement that.
Hi, looking really good. Any new updates on this
Sorry not yet. If it is urgent and you want to add it yourself feel free to send a pull request I will have a look at it :)