Chartjs-Given point in tooltiptext

0👍

here is the documentation on making a tooltip in chart.js:

https://www.chartjs.org/docs/latest/configuration/tooltip.html

you can add functions to tooltips.callbacks to calculate the title, data etc displayed in the tooltip. Then, with JavaScript’s NumberFormat https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat you ought to be able to achieve the look you want.

Leave a comment