Property
desiredMaxTickCount
| Type | Name | Default |
|---|---|---|
| int? | desiredMaxTickCount | null |
Specifies the desired maximum number of ticks
desiredMinTickCount
| Type | Name | Default |
|---|---|---|
| double | desiredMinTickCount | null |
Specifies the desired minimum number of ticks
desiredTickCount
| Type | Name | Default |
|---|---|---|
| double | desiredTickCount | null |
Determine the exact number of ticks desired, at least 2 as min & max positions
gapAxisToLabel
| Type | Name | Default |
|---|---|---|
| int? | gapAxisToLabel | 5 |
Provides the distance between the label measure and the line measure
labelAnchor
| Type | Name | Default |
|---|---|---|
| LabelAnchor | labelAnchor | LabelAnchor.centered |
Label position based on tick
tickLabelFormatter
| Type | Default |
|---|---|
| String Function(num? measure)? | null |
Styles the measure text labels
Because of type String Function(num?)?, we can customize it to display labels with values sourced from parameters.
Suppose we want to display the value along with its units, we can use code like:
tickLabelFormatter: (measure) {
return '${measure?.round()} ton';
},

labelStyle
| Type | Name | Default |
|---|---|---|
| LabelStyle | labelStyle | LabelStyle() |
Styles the measure text labels
lineStyle
| Type | Name | Default |
|---|---|---|
| LineStyle | lineStyle | LineStyle() |
Style the measure line
showLine
| Type | Name | Default |
|---|---|---|
| bool | showLine | true |
Show measure line
tickLength
| Type | Name | Default |
|---|---|---|
| int | tickLength | 3 |
Length of tick
numericViewport
| Type | Name | Default |
|---|---|---|
| NumericViewport | numericViewport | null |
set limit view for measure axis
noRenderSpec
| Type | Name | Default |
|---|---|---|
| bool | noRenderSpec | false |
if set true, will disable label and tick axis
numericTickProvider
| Type | Default |
|---|---|
| NumericTickProvider | null |
manage tick on axis
useGridLine
| Type | Default |
|---|---|
| bool | false |
use grid line spec for each tick on domain, tick will be replace.
to use this type, set noRenderSpec to false
gridLineStyle
| Type | Default |
|---|---|
| LineStyle | default to LineStyle |
styling of lines perpendicular to the axis line.
tickLineStyle
| Type | Default |
|---|---|
| LineStyle | default to LineStyle |
styling of tick line on axis. active when noRenderSpec and useGridLine is false.
measureAxis: const MeasureAxis(
tickLength: 8,
tickLineStyle:
LineStyle(color: Colors.green, thickness: 4),
),