react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

onClick event is not being called.

Open Thilak8654 opened this issue 4 years ago • 0 comments

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') }

Thilak8654 avatar Jul 23 '20 12:07 Thilak8654