PolarArea Chart.js starting from zero

๐Ÿ‘:-2

I believe you are asking for the startAngle option of Chart.js that can be found here: Polar Area GitBook

Config Options

These are the customization options specific to Polar Area charts. These options are merged with the global chart configuration options, and form the options of the chart.

startAngle โ€“ Starting angle to draw arcs for the first item in a dataset.

new Chart(ctx, {
data: data,
type: 'polarArea',
options: startAngle: -Math.PI / 4
});

This code will produce the starting angle for the first value in the dataset as 0.785

Leave a comment