FUIChartNumericAxis
public class FUIChartNumericAxis : FUIChartAxis
FUIChartNumericAxis contains properties of axes for ranges of floating point values.
The position and orientation of a numeric axis depends on the chart type. For example:
- Bar charts display the numeric axis as the X axis.
- Line, column, and combo charts display the numeric axis as the Y axis.
-
Indicates whether the baseline starts at zero or the minimum value in the data set.
Applicable only to data sets with all positive, or all negative values, otherwise the baseline is always zero.
Default is true.
Declaration
Swift
public var isZeroBased: Bool
-
Formatter used for the axis gridline labels. Defines the formatting for both extended and abbreviated states set through
FUIChartNumericAxis.abbreviatesLabels
.Defaults to a localized decimal formatter.
Declaration
Swift
public var formatter: NumberFormatter { get set }
-
True if values will be abbreviated. For example,
1,234,567.89
to1.23k
. Default is true. TheFUIChartNumericAxis.formatter
defines the formatting for both extended and abbreviated states.Declaration
Swift
public var abbreviatesLabels: Bool
-
True if the value’s magnitude is included in abbreviated labels. For example, the
k
in1.23k
.Declaration
Swift
public var isMagnitudedDisplayed: Bool { get set }
-
Allows you to specify the minimum value for the axis, overriding the minimum value applied by the chart.
explicitMin
andexplicitMax
override the data min and max range values presented in theFUIChartNumericAxis
. If the data minimum and maximum values are 0 and 100, theFUIChartNumericAxis
will present the range between 0 and 100. By settingexplicitMin
andexplicitMax
to -20 and 120, would have theFUIChartNumericAxis
display a new range between -20 and 120.Normally
explicitMin
andexplicitMax
are used when multiple charts share a context and should have the same axis ranges. Like in a trellis situation.Default is nil.
Declaration
Swift
public var explicitMin: Double?
-
Allows you to specify the maximum value for the axis, overriding the maximum value applied by the chart.
explicitMin
andexplicitMax
override the data min and max range values presented in theFUIChartNumericAxis
. If the data minimum and maximum values are 0 and 100, theFUIChartNumericAxis
will present the range between 0 and 100. By settingexplicitMin
andexplicitMax
to -20 and 120, would have theFUIChartNumericAxis
display a new range between -20 and 120.Normally
explicitMin
andexplicitMax
are used when multiple charts share a context and should have the same axis ranges. Like in a trellis situation.Default is nil.
Declaration
Swift
public var explicitMax: Double?