Closed amangeot closed 7 years ago
Sorry, just found another issue with an example.
I'll paste it here if it can help:
handleClick = (e) => {
const activePoints = this.refs.doughnut.getSegmentsAtEvent(e)
}
<Doughnut data={data} options={options} ref='doughnut' onClick={this.handleClick} />
Hello, I would like to use a Doughnut Chart in a dynamic way. I want to change the color of an element on click events.
How can we use
getSegmentsAtEvent
with the currentreact-chartjs
API ?I can't find any documentation about events,