0👍
✅
You are using V3 of chart.js while using V2 syntax. In v3 you have to configure it in the options.plugins.legend
namespace.
options: {
plugins: {
legend: {
display: false
}
}
}
Source:stackexchange.com