ChartAxis
noRenderSpec
Type | default |
---|---|
bool | false |
disable label and tick axis, but not axis line
renderType
Type | default |
---|---|
AxisRenderType | AxisRenderType.smallTick |
showAxisLine
Type | default |
---|---|
bool | true |
show axis line or not
axisLineStyle
Type | default |
---|---|
LineStyle | const LineStyle() |
gridlineStyle
Type | default |
---|---|
LineStyle | const LineStyle() |
styling of lines perpendicular to the axis line
tickLineStyle
Type | default |
---|---|
LineStyle | const LineStyle() |
styling of tick line on axis
tickLength
Type | default |
---|---|
int | 3 |
tickLabelFormatter
Type | default |
---|---|
String Function(T? value)? | null |
currently work on DomainAxisN, DomainAxisT, MeasureAxis
tickLabelFormatter: (value) {
return '${value?.toInt()} kg';
},
tickLabelFormatter: (value) {
return DateFormat('d M y').format(value!);
},
labelStyle
Type | default |
---|---|
LabelStyle | const LabelStyle() |
styling for axis tick label
labelAnchor
Type | default |
---|---|
LabelAnchor | LabelAnchor.centered |
label position based on tick axis
labelRotation
Type | default |
---|---|
int | 0 |
minimumPaddingBetweenLabels
Type | default |
---|---|
int? | null |
Can be use as space beetween label. More smaller padding, then label will be getting closer. They can even collide with each other, take each other's place.
labelOffsetFromAxis
Type | default |
---|---|
int? | null |
Distance from the axis line in px.
tickLabelJustification
Type | default |
---|---|
TickLabelJustification | TickLabelJustification.inside |
Work on vertical axis