Skip to main content

PointLabelDecorator

labelFormatterN

String Function(NumericData data)?

labelFormatterN: (data) {
return '${data.domain}: ${data.measure}kg';
},

labelFormatterN


labelFormatterO

String Function(OrdinalData data)?

labelFormatterO: (data) {
return '${data.domain}: ${data.measure}cm';
},

labelFormatterO


labelFormatterT

String Function(TimeData data)?

labelFormatterT: (data) {
return '${DateFormat('d MMM').format(data.domain)}: ${data.measure}';
},

labelFormatterT


labelStyle

TypeDefault
LabelStyle?null

for styling label point


selectedLabelStyle

TypeDefault
LabelStyle?null

for styling label point with state selected


horizontalPadding

TypeDefault
int0

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


verticalPadding

TypeDefault
int0

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


selectedN

bool Function(NumericData data)?
default: false

selectedO

bool Function(OrdinalData data)?
default: false

selectedT

bool Function(TimeData data)?
default: false