ChartCategoryAxisLabelLayoutStyle

public enum ChartCategoryAxisLabelLayoutStyle : CustomStringConvertible

Defines the policy used to determine which labels are presented along the horizontal category axis.

  • The allOrNothing layout style will display all labels, or no labels when they cannot be presented without overlapping.

    • Labels may be truncated to fit.
    • A minimum gap between each label is enforced.
    • All labels are center aligned beneath their respective point, column, cluster, etc.

    This is the default layout mode.

    Declaration

    Swift

    case allOrNothing
  • The range layout style is intended for time series, or numeric ranges where horizontal space is limited.

    Only labels for the first and last category members will be displayed.

    • The first label is aligned to the left edge of the axis.
    • The last label is aligned to the right edge of the axis.

    Declaration

    Swift

    case range
  • Declaration

    Swift

    public var description: String { get }