AxisStyle class
Constructors
AxisStyle ({required TextStyle textStyle , required EdgeInsets labelInsets , required LabelFunction labelProvider , required Color lineColor , double lineSize = _defaultLineSize , bool drawLabels = true , int maxLabels = 20 , int ? labelCount , bool skipFirstLabel = false , bool skipLastLabel = false , bool labelOnDatapoints = false , int ? labelIncrementMultiples , double ? absoluteMin , double ? clampedMin , double ? absoluteMax , double ? marginAbove , double ? marginBelow , AxisValuePredicate ? applyMarginBelow , double ? minimumRange })
Properties
absoluteMax
→ double ?
if specified, constrains the chart so that
the chart displays with this value as the upper bound.
final
absoluteMin
→ double ?
if specified, constrains the chart so that
the chart displays with this value as the lower bound.
final
applyMarginBelow
→ AxisValuePredicate ?
indicates whether to apply the marginBelow based on the minimum Y value
in data point units.
final
clampedMin
→ double ?
if specified, constrains the minimum chart area value
when the minimumRange is applied.
final
drawLabels
→ bool
when false, labels are not shown
final
fontSize
→ double
no setter
hashCode
→ int
The hash code for this object.
no setter override
labelCount
→ int ?
if specified, the number of labels to display
final
labelIncrementMultiples
→ int ?
when specified, labels must be placed on values that are multiples
of the specified value. For example, labelIncrementMultiples = 1 would
meke labels appear on whole values only.
final
labelInsets
→ EdgeInsets
insets to apply to the axis
final
labelOnDatapoints
→ bool
when true, labels are shown exactly on datapoints instead of
at any interval.
final
labelProvider
→ LabelFunction
the function that provides a text label from a data point value
final
lineColor
→ Color
the axis line color
final
lineSize
→ double
the width of the axis line
final
marginAbove
→ double ?
the margin to apply above the maximum value on the chart,
in data point units.
final
marginBelow
→ double ?
the margin to apply below the minimum value on the chart,
in data point units.
final
maxLabels
→ int
the maximum number of labels to display
final
minimumRange
→ double ?
the minimum range that values occupy on the chart regardless
of values in the series.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
skipFirstLabel
→ bool
when true, the first label is not shown
final
skipLastLabel
→ bool
when true, the last label is not shown
final
textStyle
→ TextStyle
the style to use when rendering labels
final
Methods
copyWith ({int ? maxLabels , int ? labelCount , bool ? skipFirstLabel , bool ? skipLastLabel , bool ? labelOnDatapoints , int ? labelIncrementMultiples , LabelFunction ? labelProvider , TextStyle ? textStyle , bool ? drawLabels , EdgeInsets ? labelInsets , Color ? lineColor , double ? lineSize , double ? absoluteMin , double ? clampedMin , double ? absoluteMax , double ? marginAbove , double ? marginBelow , AxisValuePredicate ? applyMarginBelow , double ? minimumRange })
→ AxisStyle
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited