in chart.js doc, BarChart prototype-methods, i can bind click event listener to the canvas and get the clicked bar via chart instance's methods. But in react, in this component, i can not access to the chart instance, even i do not know where is the canvas is... so how can i bind event listener and get the bar clicked?
in chart.js doc, BarChart prototype-methods, i can bind click event listener to the canvas and get the clicked bar via chart instance's methods. But in react, in this component, i can not access to the chart instance, even i do not know where is the canvas is... so how can i bind event listener and get the bar clicked?