Skip to main content

Property


gapAxisToLabel

TypeNameDefault
int?gapAxisToLabel5

Provides the distance between the domain label and the line domain

gap


labelAnchor

TypeNameDefault
LabelAnchorlabelAnchorLabelAnchor.centered

Label position based on thick


labelStyle

TypeNameDefault
LabelStylelabelStyleLabelStyle()

Gives style to the domain text label


lineStyle

TypeNameDefault
LineStylelineStyleLineStyle()

Gives style to the line domain


showLine

TypeNameDefault
boolshowLinetrue

Show domain line


tickLength

TypeNameDefault
inttickLength3

Length of thick

thick


numericViewport

TypeNameDefault
NumericViewportnumericViewportnull

Limits the chart viewport


ordinalViewport

TypeNameDefault
OrdinalViewportordinalViewportnull

Limits the chart viewport


timeViewport

TypeNameDefault
TimeViewporttimeViewportnull

Limits the chart viewport


labelRotation

TypeNameDefault
intlabelRotation0

starting point at center right.
center right = 0 degree.
starting 30 - 90, will be affect to height of chart widget.

labelRotation


minimumPaddingBetweenLabels

TypeNameDefault
intminimumPaddingBetweenLabels0

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.

minPadding_0
labelRotation


tickLabelFormatterN

TypeDefault
String Function(num? domain)null

label format for numeric chart series.

tickLabelFormatterN: (domain) {
return '$domain meter';
},

tickLabelFormatterN


tickLabelFormatterT

TypeDefault
String Function(DateTime domain)null

label format for time series. Combine with intl to format date

tickLabelFormatterT: (domain) {
return DateFormat('EEEE, d MMM').format(domain);
},

labelFormatterT


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.

domainAxis: const DomainAxis(
tickLength: 8,
tickLineStyle:
LineStyle(color: Colors.purple, thickness: 4),
),

Image


Tips

  • Use labelRotation and minimumPaddingBetweenLabels to show more label in time series widget