Skip to main content
Version: 3.0.0

ChartAxis

noRenderSpec

Typedefault
boolfalse

disable label and tick axis, but not axis line

alt

renderType

Typedefault
AxisRenderTypeAxisRenderType.smallTick

showAxisLine

Typedefault
booltrue

show axis line or not

alt alt

axisLineStyle

Typedefault
LineStyleconst LineStyle()

alt

gridlineStyle

Typedefault
LineStyleconst LineStyle()

styling of lines perpendicular to the axis line

alt

tickLineStyle

Typedefault
LineStyleconst LineStyle()

styling of tick line on axis

alt

tickLength

Typedefault
int3

tickLabelFormatter

Typedefault
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

Typedefault
LabelStyleconst LabelStyle()

styling for axis tick label

labelAnchor

Typedefault
LabelAnchorLabelAnchor.centered

label position based on tick axis

labelRotation

Typedefault
int0

alt

minimumPaddingBetweenLabels

Typedefault
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.

alt

alt

labelOffsetFromAxis

Typedefault
int?null

Distance from the axis line in px.

alt

alt

tickLabelJustification

Typedefault
TickLabelJustificationTickLabelJustification.inside

Work on vertical axis