Having trouble removing legend from Radar Chart in chart.js even when using legend: {display : false}
. The code is being utilized and then displayed with HTML/JS.
Here is the provided code snippet:
var options5 = {
type: 'radar',
data: {
labels: [sec1, sec2, sec3, sec4, sec5],
responsive: false,
legend: { display: false },
datasets: [{
data: [50, 70, 89, 34, 100],
backgroundColor: "transparent",
borderColor: "rgba(200,0,0,0.6)",
fill: false,
radius: 6,
pointRadius: 6,
pointBorderWidth: 3,
pointBackgroundColor: "orange",
pointBorderColor: "rgba(200,0,0,0.6)",
pointHoverRadius: 10,
}]
},
options: {
legend: {
display: false
}
}
}
new Chart(ctx5, options5);