Const
Collection of some example implementations of SliceLabelFormatters.
Use with setLabelFormatter
Example usage:
// Use a default implementationSlicedCharts.setLabelFormatter(SliceLabelFormatters.NamePlusRelativeValue)// Use a custom implementationSlicedCharts.setLabelFormatter((slice, relativeValue) => slice.getValue() + ' €')
Slice Label formatter for ${name}.
${name}
Slice Label formatter for ${name}: ${(relativeValue * 100).toFixed(1)}%.
${name}: ${(relativeValue * 100).toFixed(1)}%
Slice Label formatter for ${name}: ${Math.round(animatedValue)}.
${name}: ${Math.round(animatedValue)}
Collection of some example implementations of SliceLabelFormatters.
Use with setLabelFormatter
Example usage: