iOS Charting Documentation - SciChart iOS Charts SDK v3.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:(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:(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:(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.