1👍
✅
A quick way would be to use the legends generateLabels
function to return an empty string
options: {
legend: {
labels: {
generateLabels: function(chart) {
return "";
}
}
}
}
But it does mean you are left with a rather naked looking graph
2👍
There’s a global setting for this. This will allow you to still have hoverable labels while removing the legend.
Chart.defaults.global.legend.display = false;
Source:stackexchange.com