Skip to main content

Property


desiredMaxTickCount

TypeNameDefault
int?desiredMaxTickCountnull

Specifies the desired maximum number of ticks


desiredMinTickCount

TypeNameDefault
doubledesiredMinTickCountnull

Specifies the desired minimum number of ticks


desiredTickCount

TypeNameDefault
doubledesiredTickCountnull

Determine the exact number of ticks desired, at least 2 as min & max positions


gapAxisToLabel

TypeNameDefault
int?gapAxisToLabel5

Provides the distance between the label measure and the line measure

gap


labelAnchor

TypeNameDefault
LabelAnchorlabelAnchorLabelAnchor.centered

Label position based on tick


tickLabelFormatter

TypeDefault
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';
},

label_format


labelStyle

TypeNameDefault
LabelStylelabelStyleLabelStyle()

Styles the measure text labels


lineStyle

TypeNameDefault
LineStylelineStyleLineStyle()

Style the measure line


showLine

TypeNameDefault
boolshowLinetrue

Show measure line


tickLength

TypeNameDefault
inttickLength3

Length of tick

tick


numericViewport

TypeNameDefault
NumericViewportnumericViewportnull

set limit view for measure axis


noRenderSpec

TypeNameDefault
boolnoRenderSpecfalse

if set true, will disable label and tick axis

noRenderSpec


numericTickProvider

TypeDefault
NumericTickProvidernull

manage tick on axis

useGridLine

TypeDefault
boolfalse

use grid line spec for each tick on domain, tick will be replace. to use this type, set noRenderSpec to false

Image


gridLineStyle

TypeDefault
LineStyledefault to LineStyle

styling of lines perpendicular to the axis line.

Image


tickLineStyle

TypeDefault
LineStyledefault 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),
),

Image