[Chartjs]-ChartJS 3 doesn't display legend

1👍

Looks like newer versions of ChartJS require you to register the individual elements you’re going to use.
You need to register the legend specifically.

import { Chart, Legend } from 'chart.js';
// ...
Chart.register(Legend);

Leave a comment