DatumLegend<D> class
Datum legend behavior for charts.
By default this behavior creates one legend entry per datum in the first series rendered on the chart.
- Inheritance
-
- Object
- ChartBehavior<
D> - DatumLegend
- Annotations
Constructors
- DatumLegend({BehaviorPosition? position, OutsideJustification? outsideJustification, InsideJustification? insideJustification, bool? horizontalFirst, int? desiredMaxRows, int? desiredMaxColumns, EdgeInsets? cellPadding, bool? showMeasures, LegendDefaultMeasure? legendDefaultMeasure, MeasureFormatter? measureFormatter, MeasureFormatter? secondaryMeasureFormatter, TextStyleSpec? entryTextStyle})
-
Create a new tabular layout legend.
factory
- DatumLegend.customLayout(LegendContentBuilder contentBuilder, {BehaviorPosition? position, OutsideJustification? outsideJustification, InsideJustification? insideJustification, bool? showMeasures, LegendDefaultMeasure? legendDefaultMeasure, MeasureFormatter? measureFormatter, MeasureFormatter? secondaryMeasureFormatter, TextStyleSpec? entryTextStyle})
-
Create a legend with custom layout.
factory
Properties
- contentBuilder → LegendContentBuilder
-
Builder for creating custom legend content.
final
-
desiredGestures
→ Set<
GestureType> -
final
- entryTextStyle → TextStyleSpec?
-
Styles for legend entry label text.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- insideJustification → InsideJustification
-
final
- legendDefaultMeasure → LegendDefaultMeasure?
-
Option to show measures when selection is null.
final
- measureFormatter → MeasureFormatter?
-
Formatter for measure value(s) if the measures are shown on the legend.
final
- outsideJustification → OutsideJustification
-
Justification of the legend relative to the chart
final
- position → BehaviorPosition
-
Position of the legend relative to the chart.
final
- role → String
-
All Legend behaviors get the same role ID, because you should only have
one legend on a chart.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryMeasureFormatter → MeasureFormatter?
-
Formatter for secondary measure value(s) if the measures are shown on the
legend and the series uses the secondary axis.
final
- selectionModelType → SelectionModelType?
-
final
- showMeasures → bool
-
Whether or not the legend should show measures.
final
Methods
-
createCommonBehavior(
) → DatumLegend< D> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCommonBehavior(
ChartBehavior commonBehavior) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override