react-plotly.js
react-plotly.js copied to clipboard
onClick event is not being called.
When both onSelected and onClick event is provided to the plot, even if the click event happens on the plot, that is going to onSelected event itself. I want to use both onSelected as well as onClick event. How to achieve this?
<Plot data={chartData} layout={chartLayout} onSelected={ this.onPointSelected.bind(this)} onClick={(data, e) => { let selectedPoint = data.points[0].text; }} />
onPointSelected = (data) => { console.log('point selection') }