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 |