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

SCIVerticalAxisLayoutStrategy

@interface SCIVerticalAxisLayoutStrategy : SCIAxisLayoutStrategyBase

Base layout strategy class for vertical 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)layoutAxesFromLeftToRight:(nonnull NSArray<id<ISCIAxis>> *)axes
                             withLeft:(CGFloat)left
                                  top:(CGFloat)top
                               bottom:(CGFloat)bottom;

    Swift

    class func layoutAxesFromLeft(toRight axes: [ISCIAxis], withLeft left: CGFloat, top: CGFloat, bottom: 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.

    bottom

    The bottom bounds for this layout strategy

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

    Declaration

    Objective-C

    + (void)layoutAxesFromRightToLeft:(nonnull NSArray<id<ISCIAxis>> *)axes
                            withRight:(CGFloat)right
                                  top:(CGFloat)top
                               bottom:(CGFloat)bottom;

    Swift

    class func layoutAxesFromRight(toLeft axes: [ISCIAxis], withRight right: CGFloat, top: CGFloat, bottom: CGFloat)

    Parameters

    axes

    The axes to perform layout on.

    right

    The right bounds for this layout strategy.

    top

    The top bounds for this layout strategy.

    bottom

    The bottom bounds for this layout strategy