Chartjs-How to implement tooltip mode "single" in Chart.js 3?

0👍

As described in the docs you can use mode nearest with intersect true to return the nearest point or you can use mode point

0👍

intersect with nearest mode do the trick for me:

this.chartOptions = {
    interaction: {
        intersect: true,
        mode: "nearest",
    },
};

enter image description here

Leave a comment