iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIHorizontalAxisLayoutStrategy

@interface SCIHorizontalAxisLayoutStrategy : SCIAxisLayoutStrategyBase

Base layout strategy class for horizontal layout of axes.

  • Helper method which measures required size of axis for this horizontal layout strategy.

    Declaration

    Objective-C

    + (CGFloat)getRequiredAxisSizeFrom:
        (nonnull SCIAxisLayoutState *)axisLayoutState;

    Swift

    class func getRequiredAxisSize(from axisLayoutState: SCIAxisLayoutState) -> CGFloat

    Parameters

    axisLayoutState

    The layout state of ISCIAxis.

    Return Value

    The desired size in pixels.

  • Helper method for layout axes horizontally from top to bottom.

    Declaration

    Objective-C

    + (void)layoutAxesFromTopToBottom:(nonnull NSArray<id<ISCIAxis>> *)axes
                             withLeft:(CGFloat)left
                                  top:(CGFloat)top
                                right:(CGFloat)right;

    Swift

    class func layoutAxesFromTop(toBottom axes: [ISCIAxis], withLeft left: CGFloat, top: CGFloat, right: CGFloat)

    Parameters

    axes

    The axes to perform layout on.

    left

    The left bounds for this layout strategy.

    top

    The top bounds for this layout strategy.

    right

    The right bounds for this layout strategy.

  • Helper method for layout axes horizontally from bottom to top.

    Declaration

    Objective-C

    + (void)layoutAxesFromBottomToTop:(nonnull NSArray<id<ISCIAxis>> *)axes
                             withLeft:(CGFloat)left
                               bottom:(CGFloat)bottom
                                right:(CGFloat)right;

    Swift

    class func layoutAxesFromBottom(toTop axes: [ISCIAxis], withLeft left: CGFloat, bottom: CGFloat, right: CGFloat)

    Parameters

    axes

    The axes to perform layout on.

    left

    The left bounds for this layout strategy.

    bottom

    The bottom bounds for this layout strategy.

    right

    The right bounds for this layout strategy.