Configuration options

Common configuration options are inherited for pie charts, but there are also some options that are specific to pie and doughnut charts. These are listed in the following table:

Property

Value

Description

cutoutPercentage

Number. Defaults: 0 for 'pie', and '50' for doughnut

A percentage of the chart that is cut out from the middle

rotation

Number. Default: -0.5 * Math.PI

The starting angle to draw the arcs

circumference

Number. Default: 2 * Math.PI

The circumference of the pie

Configuration options for pie and doughnut charts

These options are merged (and override) global configuration options. Default options for each type of chart can also be set through the Chart.defaults.doughnut and Chart.defaults.pie objects, which support the same properties listed earlier.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset