[Chartjs]-Chart.js set global point size not working

4👍

Use global point options instead of global rectangle options.

// Chart.defaults.global.elements.rectangle.radius = 2; // remove this line
Chart.defaults.global.elements.point.radius = 2;

You also have to move this line on top of your code. It should be performed prior to create your charts.

Leave a comment