[Chartjs]-Trouble with setting background color for Line chart at Chartjs version 3.5.1

1👍

It seems to work fine for me. Only thing I can think of is that you are using treeshaking import and don’t have the filler plugin imported and registered like so:

import { Chart, Filler } from 'chart.js';

Chart.register(Filler)

Alternatively you can also let chart.js import and register everything so you don’t encounter these kind of problems like so:

import Chart from 'chart.js/auto';

Leave a comment