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([dynamic seriesRenderer, dynamic dataPoints, num viewportPointIndex, num pointIndex])
Creating an argument constructor of DataLabelRenderArgs class.

Properties

color Color
Get and set the background color of a data label.
read / write
dataPoints → dynamic
Get the data points of the series.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
offset Offset
Get and set the horizontal/vertical position of the data label. [...]
read / write
pointIndex num
Get the overall index value of a data label.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seriesRenderer → dynamic
Get the current series. [...]
final
text String
Get and set the text value of a data label.
read / write
textStyle TextStyle
Get and set the style property of the data label text.
read / write
viewportPointIndex num
Get the viewport index value of a data label.
final

Methods

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

Operators

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