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 { get set }
  • 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 }
  • Undocumented

    Declaration

    Swift

    public var abbreviatedFormatter: NumberFormatter { get set }
  • True if values will be abbreviated. For example, “1,234,567.89” to “1.23k”. Default is true. The FUIChartNumericAxis.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” in “1.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 and explicitMax override the data min and max range values presented in the FUIChartNumericAxis. If the data minimum and maximum values are 0 and 100, the FUIChartNumericAxis will present the range between 0 and 100. By setting explicitMin and explicitMax to -20 and 120, would have the FUIChartNumericAxis display a new range between -20 and 120.

    Normally explicitMin and explicitMax 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? { get set }
  • Allows you to specify the maximum value for the axis, overriding the maximum value applied by the chart. explicitMin and explicitMax override the data min and max range values presented in the FUIChartNumericAxis. If the data minimum and maximum values are 0 and 100, the FUIChartNumericAxis will present the range between 0 and 100. By setting explicitMin and explicitMax to -20 and 120, would have the FUIChartNumericAxis display a new range between -20 and 120.

    Normally explicitMin and explicitMax 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? { get set }