[Chartjs]-Removing legend from chart.js Radar chart

2๐Ÿ‘

โœ…

As described in the migration guide (https://www.chartjs.org/docs/master/getting-started/v3-migration.html#specific-changes) the legend has been moved to the plugins namespace so you will need to put it like so:

new Chart("myChart", {
    type: "radar",
    data: data,
    options: {
        plugins: {
            legend: {
                display: false,
            },
        }
    }
});

Leave a comment