Chartjs-Event click only x-axis label chartJS

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

Leave a comment