Dataset properties for pie charts

Besides data and labels properties, several other properties (listed as follows) can be used in each dataset object to configure the colors and style of each slice. All properties receive an array of attributes, and each attribute is applied to the corresponding slice:

Property

Value

Description

backgroundColor

Array of CSS color strings

The fill color of the slice

borderColor

Array of CSS color strings

The border color of the slice

borderWidth

Array of numbers

The border width of the slice

hoverBackgroundColor

Array of CSS color strings

The fill color of the slice when the mouse hovers over it

hoverBorderColor

Array of CSS color strings

The border color of the slice when the mouse hovers over it

hoverBorderWidth

Array of numbers

The border width of the slice when the mouse hovers over it

Dataset options for pie and doughnut charts
..................Content has been hidden....................

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