0👍
No, since chart.js V3 the click event is limited to the chart area only so you will need to add your own click listener to the canvas.
In this click listener you can then use the getValueForPixel
to get the X label
Source:stackexchange.com
0👍
No, since chart.js V3 the click event is limited to the chart area only so you will need to add your own click listener to the canvas.
In this click listener you can then use the getValueForPixel
to get the X label