Dart Documentationorson_chartsStandardXYZLabelGenerator

StandardXYZLabelGenerator class

A standard implementation of the XYZLabelGenerator interface.

Implements

XYZLabelGenerator

Static Properties

final String COUNT_TEMPLATE #

A template string for labels containing the key followed by the number of items in the series.

final String DEFAULT_TEMPLATE #

The default template string.

final String KEY_ONLY_TEMPLATE #

A template string for labels containing just the key.

final String TOTAL_TEMPLATE #

A template string for labels containing the key followed by the total of the values in the series.

Constructors

new StandardXYZLabelGenerator() #

Creates a new instance using the DEFAULT_TEMPLATE.

new StandardXYZLabelGenerator.withTemplate(String template) #

Creates a new instance with the specified label template.

Properties

String template #

The template string that controls the format of the labels.

Methods

String generateSeriesLabel(XYZDataset dataset, Comparable seriesKey) #

Returns a label for the series in the dataset with the specified seriesKey.

docs inherited from XYZLabelGenerator