YAxis class

Inheritance

Constructors

YAxis({AxisDependency position: AxisDependency.LEFT})

Properties

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

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. [...]
override
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) double
This is for HorizontalBarChart vertical spacing. [...]
getRequiredWidthSpace(TextPainter p) double
This is for normal (not horizontal) charts horizontal spacing. [...]
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
needsOffset() bool
Returns true if this axis needs horizontal offset, false if no offset is needed. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
setDrawZeroLine(bool _drawZeroLine) → void
Set this to true to draw the zero-line regardless of weather other grid-lines are enabled or not. Default: false [...]
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
setStartAtZero(bool startAtZero) → void
This method is deprecated. Use setAxisMinimum(...) / setAxisMaximum(...) instead. [...]
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
Returns a string representation of this object.
inherited

Operators

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