[Chartjs]-Angular chartjs line chart default options

2👍

You can set global default options by using Chart.defaults.global.optionname. You will have to do this for every option so the part for your legend default options will look like this:

Chart.defaults.global.legend.labels.fontcolor = '#01c83c';
Chart.defaults.global.legend.display = true;

Leave a comment