0👍
✅
Assuming you’re using Chart.js version 3, it should be defined as follows:
options: {
plugins: {
legend: {
display: false
}
}
...
Please consult Chart.js documentation here
0👍
Able to find the solution.Need to use plugin also
options :{
plugins:{
legend: {
display: false
},
}
}
Source:stackexchange.com