DataLabelSettings class
Customizes the data label.
Constructors
- DataLabelSettings({ChartAlignment alignment: ChartAlignment.center, Color color, ChartTextStyle textStyle, EdgeInsets margin, double opacity: 1, CartesianLabelPosition position: CartesianLabelPosition.auto, double borderRadius: 5, bool isVisible: false, int angle: 0, ChartWidgetBuilder builder, bool useSeriesColor: false, Color borderColor, double borderWidth, LabelIntersectAction labelIntersectAction, ConnectorLineSettings connectorLineSettings, LabelPosition labelPosition })
Properties
- alignment → ChartAlignment
-
Alignment of the data label. The data label can be aligned far, near, or center of the data point position. [...]
final
- angle → int
-
Rotation angle of the data label. [...]
final
- borderColor → Color
-
Border color of the data label. [...]
final
- borderRadius → double
-
Customizes the data label border radius. [...]
final
- borderWidth → double
-
Border width of the data label. [...]
final
- builder → ChartWidgetBuilder
-
Builder for data label. [...]
final
- color → Color
-
Color of the data label. [...]
final
- connectorLineSettings → ConnectorLineSettings
-
Customizes the connector lines. Connector line is rendered when the data label is
placed outside the chart. [...]
final
- isVisible → bool
-
Toggles the visibility of the data label in the series. [...]
final
- labelIntersectAction → LabelIntersectAction
-
Action on data labels intersection. The intersecting data labels can be hidden. [...]
final
- labelPosition → LabelPosition
-
Position of the data label. [...]
final
- margin → EdgeInsets
-
Margin between the data label text and its shape. [...]
final
- opacity → double
-
Opacity of the data label. The value ranges from 0 to 1. [...]
final
- position → CartesianLabelPosition
-
Position of the data label. [...]
final
- textStyle → ChartTextStyle
-
Customizes the data label font. [...]
final
- useSeriesColor → bool
-
Uses the series color for filling the data label shape [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited