PointLabelDecorator
labelFormatterN
String Function(NumericData data)?
labelFormatterN: (data) {
return '${data.domain}: ${data.measure}kg';
},
labelFormatterO
String Function(OrdinalData data)?
labelFormatterO: (data) {
return '${data.domain}: ${data.measure}cm';
},
labelFormatterT
String Function(TimeData data)?
labelFormatterT: (data) {
return '${DateFormat('d MMM').format(data.domain)}: ${data.measure}';
},
labelStyle
Type | Default |
---|---|
LabelStyle? | null |
for styling label point
selectedLabelStyle
Type | Default |
---|---|
LabelStyle? | null |
for styling label point with state selected
horizontalPadding
Type | Default |
---|---|
int | 0 |
padding > 0, will be more to left
padding < 0, will be more to right
verticalPadding
Type | Default |
---|---|
int | 0 |
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