Dart Documentationorson_chartsStandardPieLabelGenerator

StandardPieLabelGenerator class

A default implementation of the PieLabelGenerator interface.

Implements

PieLabelGenerator

Static Properties

final DEFAULT_TEMPLATE #

final KEY_ONLY_TEMPLATE #

A template that returns labels containing only the key.

final PERCENT_TEMPLATE #

A template that returns labels containing the key plus the percentage in brackets.

final VALUE_TEMPLATE #

A template that returns labels containins the key plus the data value in brackets.

Constructors

new StandardPieLabelGenerator() #

Creates a new StandardPieLabelGenerator instance.

new StandardPieLabelGenerator.withTemplate(String template) #

Creates a new instance that generates labels using the specified template.

Properties

String template #

The template (controls the format of the generated labels).

Methods

String generateLabel(PieDataset dataset, Comparable key) #

Generates a label for the item in the dataset with the specified key.

docs inherited from PieLabelGenerator