Skip to main content
Version: 3.0.0

PointLabelDecorator

labelFormatter

Typedefault
String Function(D data)?null

customize point label value

pointLabelDecorator: PointLabelDecoratorO(
labelFormatter: (data) {
return '${data.measure} cm';
},
),

alt

selected

Typedefault
String Function(D data)?null

selected point

selected: (data) {
return data.domain == 'Tue' ? true : false;
},
selectedLabelStyle: LabelStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
),

alt

labelStyle

Typedefault
LabelStylenull

for styling label point

selectedLabelStyle

Typedefault
LabelStylenull

for styling label point with state selected

horizontalPadding

Typedefault
int0

padding > 0, will be more to left
padding < 0, will be more to right

alt alt alt

verticalPadding

Typedefault
int0

padding > 0, will be more to top
padding < 0, will be more to bottom

alt alt alt