DataLabelRenderArgs class

Holds the onDataLabelRender event arguments.

DataLabelRenderArgs is the type of argument for the onDataLabelRender event. Whenever the data label gets rendered, the onDataLabelRender event is triggered and provides options to customize the data label text, data label text style, the background color.

It has the public properties of data label text, series, data points, and point index.

Constructors

DataLabelRenderArgs({required dynamic seriesRenderer, required dynamic dataPoints, required int viewportPointIndex, required int pointIndex})
Creating an argument constructor of DataLabelRenderArgs class.

Properties

color Color
Get and set the background color of a data label.
getter/setter pair
dataPoints → dynamic
Get the data points of the series.
final
hashCode int
The hash code for this object.
no setterinherited
offset Offset
Get and set the horizontal/vertical position of the data label.
getter/setter pair
pointIndex int
Get the overall index value of a data label.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seriesRenderer → dynamic
Get the current series.
final
text String?
Get and set the text value of a data label.
getter/setter pair
textStyle TextStyle
Get and set the style property of the data label text.
getter/setter pair
viewportPointIndex int
Get the view port index value of a data label.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited