showTickOnLeftAxis
bool
false
false
showTickOnTopAxis
bool
false
false
showTickOnBottomAxis
bool
false
false
showTickOnRightAxis
bool
false
false
Let's take a look at our Axes system now. By default, any Cartesian Type Chart will draw the Cartesian X & Y Axes. To style our axes, we will use the chartStylingData
property which provides us the axisStyle
property.
You may be intrigued before with the lack of minXValue
and minYValue
properties in ChartStructureData property before. This is because the chart auto shifts the origin points to present Negative Axes if Negative values are found.
We can also add interval ticks along the axes. By default, ticks are not visible, and can be enabled individually with the default constructor or with the showTicks
property of AxisTickConfig.forAllAxis
constructor.
axisWidth
double
false
2.0
axisColor
Color
false
Colors.black45
tickConfig
AxisTickConfig
false
Class Defaults
tickLength
double
false
15.0
tickWidth
double
false
1.0
tickColor
Color
false
Colors.black45
Last updated