0👍
tooltips: {
enabled: true,
mode: 'single',
callbacks:
{
title: function(tooltipItem, data)
{
return cpc_label[tooltipItem[0]['index']];
},
}
},
cpc_label is my javascript array of tooltip titles. Using this code it makes the array display each element in the respective tooltip.
Hope this solves your issue
- Chartjs-How to achive Chart JS weather chart of 5 day / 3 hour forecast data
- Chartjs-Angular-chart.js, how to change colours labels
Source:stackexchange.com