22👍
Try this:
tooltips: {
mode: 'label',
callbacks: {
label: function(tooltipItem, data) {
var indice = tooltipItem.index;
return data.labels[indice] +': '+data.datasets[0].data[indice] + '';
}
}
},
- [Chartjs]-In Chart.js set chart title, name of x axis and y axis?
- [Chartjs]-How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
Source:stackexchange.com