react-d3-components icon indicating copy to clipboard operation
react-d3-components copied to clipboard

Event support

Open felixhao28 opened this issue 10 years ago • 7 comments

Especially for mouse events like onClick and onContextMenu. Currently I have to wrap it in a div to catch those events.

felixhao28 avatar Mar 26 '15 12:03 felixhao28

Can you elaborate? What use cases etc

codesuki avatar Mar 26 '15 14:03 codesuki

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.

felixhao28 avatar Mar 27 '15 02:03 felixhao28

I see, nice use case. I definitely want to integrate that.

codesuki avatar Mar 27 '15 02:03 codesuki

Hi ! Any news on this ?

martpie avatar Oct 03 '15 16:10 martpie

Hi! Planning to check next week on how to implement that.

codesuki avatar Oct 04 '15 00:10 codesuki

Hi, looking really good. Any new updates on this

jhawthor avatar Jan 18 '16 21:01 jhawthor

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 :)

codesuki avatar Jan 19 '16 01:01 codesuki