1π
β
It might be due to version mismatch,
as per the latest version of chart.js, in order to remove the legend.
The CDN might be using the latest chart.js
options: {
plugins:{
legend: {
display: false
},
}
}
Source:stackexchange.com