8👍
The way to do it, is just adding a callback function for the tooltip property that returns an array of strings, each one of the strings will be placed in a new line.
tooltips: {
callbacks: {
label: function (tooltipItem, data) {
return ['first thing', 'another thing', 'and another one'];
}
}
}
See this jsfiddle…
-2👍
Try use:
return tooltip + "<br />" + otherTooltip;
- [Chartjs]-How to use percentage scale with Chart.js
- [Chartjs]-Chart.JS tooltip callbacks label and title (v3.5)
Source:stackexchange.com