XAxis class
- Inheritance
-
- Object
- ComponentBase
- AxisBase
- XAxis
Constructors
- XAxis()
Properties
- avoidFirstLastClipping ↔ bool
-
getter/setter pair
- axisLineColor ↔ Color
-
getter/setter pairinherited
- axisLineDashPathEffect ↔ DashPathEffect?
-
getter/setter pairinherited
- axisLineWidth ↔ double
-
getter/setter pairinherited
- axisMaximum ↔ double?
-
BELOW CODE RELATED TO CUSTOM AXIS VALUES
getter/setter pairinherited
- axisMinimum ↔ double?
-
getter/setter pairinherited
- axisRange ↔ double
-
getter/setter pairinherited
- axisValueFormatter ↔ ValueFormatter?
-
getter/setter pairinherited
- centerAxisLabels ← bool
-
no getterinherited
-
centeredEntries
↔ List<
double?> -
getter/setter pairinherited
- customAxisMax → bool
-
no setterinherited
- customAxisMin → bool
-
no setterinherited
- decimals ↔ int
-
getter/setter pairinherited
- drawAxisLine ↔ bool
-
getter/setter pairinherited
- drawGridLines ↔ bool
-
getter/setter pairinherited
- drawGridLinesBehindData ↔ bool
-
getter/setter pairinherited
- drawLabels ↔ bool
-
getter/setter pairinherited
- drawLimitLineBehindData ↔ bool
-
getter/setter pairinherited
- enabled ↔ bool
-
getter/setter pairinherited
-
entries
↔ List<
double> -
getter/setter pairinherited
- entryCount ↔ int
-
getter/setter pairinherited
- forceLabels → bool
-
no setterinherited
- granularity → double
-
no setterinherited
- granularityEnabled ↔ bool
-
getter/setter pairinherited
- gridColor ↔ Color
-
getter/setter pairinherited
- gridDashPathEffect ↔ DashPathEffect?
-
getter/setter pairinherited
- gridLineWidth ↔ double
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- labelCount → int
-
no setterinherited
- labelHeight ↔ int
-
getter/setter pair
- labelRotatedHeight ↔ int
-
getter/setter pair
- labelRotatedWidth ↔ int
-
getter/setter pair
- labelRotationAngle ↔ double
-
getter/setter pair
- labelWidth ↔ int
-
getter/setter pair
-
limitLines
↔ List<
LimitLine> ? -
getter/setter pairinherited
- position ↔ XAxisPosition
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spaceMax ↔ double
-
getter/setter pairinherited
- spaceMin ↔ double
-
getter/setter pairinherited
- textColor ↔ Color
-
getter/setter pairinherited
- textSize ↔ double
-
getter/setter pairinherited
- typeface ↔ TypeFace?
-
getter/setter pairinherited
- xOffset ↔ double
-
getter/setter pairinherited
- yOffset ↔ double
-
getter/setter pairinherited
Methods
-
addLimitLine(
LimitLine l) → void -
Adds a LimitLine to this axis.
inherited
-
calculate(
double dataMin, double dataMax) → void -
Calculates the minimum / maximum and range values of the axis with the given
minimum and maximum values from the chart data.
inherited
-
disableAxisLineDashedLine(
) → void -
Disables the axis line to be drawn in dashed mode.
inherited
-
disableGridDashedLine(
) → void -
Disables the grid line to be drawn in dashed mode.
inherited
-
enableAxisLineDashedLine(
double lineLength, double spaceLength, double phase) → void -
Enables the axis line to be drawn in dashed mode, e.g. like this
"- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF.
Keep in mind that hardware acceleration boosts performance.
inherited
-
enableGridDashedLine(
double lineLength, double spaceLength, double phase) → void -
Enables the grid line to be drawn in dashed mode, e.g. like this
"- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF.
Keep in mind that hardware acceleration boosts performance.
inherited
-
getFormattedLabel(
int index) → String -
inherited
-
getLimitLines(
) → List< LimitLine> ? -
Returns the LimitLines of this axis.
inherited
-
getLongestLabel(
) → String -
Returns the longest formatted label (in terms of characters), this axis
contains.
inherited
-
getRequiredHeightSpace(
TextPainter? p) → int -
getValueFormatter(
) → ValueFormatter? -
Returns the formatter used for formatting the axis labels.
inherited
-
isAxisLineDashedLineEnabled(
) → bool -
Returns true if the axis dashed-line effect is enabled, false if not.
inherited
-
isAxisMinCustom(
) → bool -
Returns true if the axis min value has been customized (and is not calculated automatically)
inherited
-
isCenterAxisLabelsEnabled(
) → bool -
inherited
-
isGridDashedLineEnabled(
) → bool -
Returns true if the grid dashed-line effect is enabled, false if not.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllLimitLines(
) → void -
Removes all LimitLines from the axis.
inherited
-
removeLimitLine(
LimitLine l) → void -
Removes the specified LimitLine from the axis.
inherited
-
resetAxisMaximum(
) → void -
By calling this method, any custom maximum value that has been previously set is reseted,
and the calculation is
done automatically.
inherited
-
resetAxisMinimum(
) → void -
By calling this method, any custom minimum value that has been previously set is reseted,
and the calculation is
done automatically.
inherited
-
setAxisMaximum(
double max) → void -
Set a custom maximum value for this axis. If set, this value will not be calculated
automatically depending on
the provided data. Use resetAxisMaxValue() to undo this.
inherited
-
setAxisMaxValue(
double max) → void -
Use setAxisMaximum(...) instead.
inherited
-
setAxisMinimum(
double min) → void -
Set a custom minimum value for this axis. If set, this value will not be calculated
automatically depending on
the provided data. Use resetAxisMinValue() to undo this. Do not forget to call
setStartAtZero(false) if you use
this method. Otherwise, the axis-minimum value will still be forced to 0.
inherited
-
setAxisMinValue(
double min) → void -
Use setAxisMinimum(...) instead.
inherited
-
setGranularity(
double granularity) → void -
Set a minimum interval for the axis when zooming in. The axis is not allowed to go below
that limit. This can be used to avoid label duplicating when zooming in.
inherited
-
setLabelCount1(
int count) → void -
Sets the number of label entries for the y-axis max = 25, min = 2, default: 6, be aware
that this number is not fixed.
inherited
-
setLabelCount2(
int count, bool force) → void -
sets the number of label entries for the y-axis max = 25, min = 2, default: 6, be aware
that this number is not
fixed (if force == false) and can only be approximated.
inherited
-
setLabelCount3(
int count) → void -
inherited
-
setLabelCount4(
int count, bool force) → void -
inherited
-
setValueFormatter(
ValueFormatter? f) → void -
Sets the formatter to be used for formatting the axis labels. If no formatter is set, the
chart will
automatically determine a reasonable formatting (concerning decimals) for all the values
that are drawn inside
the chart. Use chart.getDefaultValueFormatter() to use the formatter calculated by the chart.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited