This method is used for the adding slices in the Chart.
Slice title
Slice value
This method is used for the adding multiple slices in the Chart.
Array of slices
Get fill style of Slice Labels.
FillStyle object
Get font of Slice Labels.
FontSettings
Get formatter of Slice Labels.
SliceLabelFormatter - function which generates text of Labels per Slice.
Get style of Slices fill. This style is managed as a continuous Palette of FillStyle objects. Each Slice of Chart will be assigned an incremental index, which will be used to pick its fill style from this Palette.
So, for example... We have a Sliced Chart with 5 Slices, and we give it a Palette with only 3 possible values (0 = red, 1 = green, 2 = blue). The resulting Slice fill styles will be: red, green, blue, red, green. Note that this means, that the supplied Palette will have to work in a continuous manner!
Palette
Get sorter of Slices as a comparator-function.
SliceSorter - function which sorts Slices of the Chart with JavaScript API: Array.sort.
Get style of Slices Stroke.
LineStyle object
Set lookup table
Chart itself
Set fill style of Slices Labels.
FillStyle object or function which creates a new style based on previous
Chart itself
Set font of Slice Labels.
FontSettings or mutator function for existing settings
Chart itself
Set formatter of Slice Labels.
See SliceLabelFormatters for a collection of default options.
SliceLabelFormatter - function which generates text of Labels per Slice.
Chart itself
Set style of Slices fill. This style is managed as a continuous Palette of FillStyle objects. Each Slice of Chart will be assigned an incremental index, which will be used to pick its fill style from this Palette.
So, for example... We have a Sliced Chart with 5 Slices, and we give it a Palette with only 3 possible values (0 = red, 1 = green, 2 = blue). The resulting Slice fill styles will be: red, green, blue, red, green. Note that this means, that the supplied Palette will have to work in a continuous manner!
Chart itself
Set sorter of Slices as a comparator-function.
For some commonly needed default implementations, can refer to SliceSorters collection.
SliceSorter - function which sorts Slices of the Chart with JavaScript API: Array.sort.
Chart itself
Set style of Slices Stroke.
LineStyle object or function which creates a new style based on previous
Chart itself
Interface exists for enforcing shared APIs between Pie, Funnel and Pyramid Charts.