[Chartjs]-How can I get access to the index of the highlighted dataset in Chart.js

3πŸ‘

βœ…

In the tooltips callbacks I changed this:

return 'Count:  ' + Prod_ary[1][tooltipItems.index];

to this:

return 'Count:  ' + Prod_ary[1][tooltipItems[0]["index"]];

Leave a comment