PointLabelDecorator
labelFormatter
| Type | default |
|---|---|
| String Function(D data)? | null |
customize point label value
pointLabelDecorator: PointLabelDecoratorO(
labelFormatter: (data) {
return '${data.measure} cm';
},
),
selected
| Type | default |
|---|---|
| String Function(D data)? | null |
selected point
selected: (data) {
return data.domain == 'Tue' ? true : false;
},
selectedLabelStyle: LabelStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
),
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