AxisBase class

Inheritance
Implementers

Constructors

AxisBase()

Properties

axisLineColor Color
read / write
axisLineDashPathEffect DashPathEffect
read / write
axisLineWidth double
read / write
axisMaximum double
BELOW CODE RELATED TO CUSTOM AXIS VALUES
read / write
axisMinimum double
read / write
axisRange double
read / write
axisValueFormatter ValueFormatter
read / write
centerAxisLabels bool
write-only
centeredEntries List<double>
read / write
customAxisMax bool
read-only
customAxisMin bool
read-only
decimals int
read / write
drawAxisLine bool
read / write
drawGridLines bool
read / write
drawGridLinesBehindData bool
read / write
drawLabels bool
read / write
drawLimitLineBehindData bool
read / write
enabled bool
read / write, inherited
entries List<double>
read / write
entryCount int
read / write
forceLabels bool
read-only
granularity double
read-only
granularityEnabled bool
read / write
gridColor Color
read / write
gridDashPathEffect DashPathEffect
read / write
gridLineWidth double
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
labelCount int
read-only
limitLines List<LimitLine>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spaceMax double
read / write
spaceMin double
read / write
textColor Color
read / write, inherited
textSize double
read / write, inherited
typeface TypeFace
read / write, inherited
xOffset double
read / write, inherited
yOffset double
read / write, inherited

Methods

addLimitLine(LimitLine l) → void
Adds a LimitLine to this axis. [...]
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. [...]
disableAxisLineDashedLine() → void
Disables the axis line to be drawn in dashed mode.
disableGridDashedLine() → void
Disables the grid line to be drawn in dashed mode.
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. [...]
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. [...]
getFormattedLabel(int index) String
getLimitLines() List<LimitLine>
Returns the LimitLines of this axis. [...]
getLongestLabel() String
Returns the longest formatted label (in terms of characters), this axis contains. [...]
getValueFormatter() ValueFormatter
Returns the formatter used for formatting the axis labels. [...]
isAxisLineDashedLineEnabled() bool
Returns true if the axis dashed-line effect is enabled, false if not. [...]
isAxisMinCustom() bool
Returns true if the axis min value has been customized (and is not calculated automatically) [...]
isCenterAxisLabelsEnabled() bool
isGridDashedLineEnabled() bool
Returns true if the grid dashed-line effect is enabled, false if not. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeAllLimitLines() → void
Removes all LimitLines from the axis.
removeLimitLine(LimitLine l) → void
Removes the specified LimitLine from the axis. [...]
resetAxisMaximum() → void
By calling this method, any custom maximum value that has been previously set is reseted, and the calculation is done automatically.
resetAxisMinimum() → void
By calling this method, any custom minimum value that has been previously set is reseted, and the calculation is done automatically.
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. [...]
setAxisMaxValue(double max) → void
Use setAxisMaximum(...) instead. [...]
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. [...]
setAxisMinValue(double min) → void
Use setAxisMinimum(...) instead. [...]
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. [...]
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. [...]
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. [...]
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. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited