How can I add units to a labels when hovered over bars? I looked in the documentation but can't find the answer.
http://www.chartjs.org/docs/#bar-chart
I want to add for example (mm, °C,) my code:
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:false
},
scaleLabel: {
display: true,
labelString: 'Temperature'
}
}]
},
title: {
display: true,
text: 'Temperature'
},
tooltips:{
enabled: true,
mode: 'label'
}
}
});
datasets: [
{
label: "Temperature",
type: "line",
backgroundColor: "transparent",
borderColor: "#C72448",
pointBackgroundColor: "#C72448",
pointBorderColor: "#fff",
pointHoverBackgroundColor: "#fff",
pointHoverBorderColor: "rgba(179,181,198,1)",
data: [19,20,21,24,27,29,30,31,30,28,25,21]
}