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

ISCIAxisInteractivityHelper

@protocol ISCIAxisInteractivityHelper <NSObject>

Defines a set of operations which allows to interact with axis that owns current instance of ISCIAxisInteractivityHelper.

  • Calculates and returns a Zoomed Range on current ISCIAxis, using fromCoord as a coordinate of new range start and toCoord as a coordinate of new range end.

    Declaration

    Objective-C

    - (void)zoom:(nonnull id<ISCIRange>)range
            from:(CGFloat)fromCoord
              to:(CGFloat)toCoord;

    Swift

    func zoom(_ range: ISCIRange, from fromCoord: Double, to toCoord: Double)

    Parameters

    range

    ISCIRange instance to zoom.

    fromCoord

    The coordinates of new range start in pixels.

    toCoord

    The coordinates of new range end in pixels.

  • Calculates and returns a Zoomed Range on current ISCIAxis, using minFraction as multiplier of range start and maxFraction as multiplier of range end.

    Declaration

    Objective-C

    - (void)zoom:(nonnull id<ISCIRange>)range
           byMin:(CGFloat)minFraction
             max:(CGFloat)maxFraction;

    Swift

    func zoom(_ range: ISCIRange, byMin minFraction: Double, max maxFraction: Double)

    Parameters

    range

    ISCIRange instance to zoom.

    minFraction

    The multiplier of range start.

    maxFraction

    The multiplier of range end.

  • From the starting ISCIRange, scrolls to a new range by the the specified number of pixels in Min direction.

    Declaration

    Objective-C

    - (void)scrollInMinDirection:(nonnull id<ISCIRange>)range
                        byPixels:(CGFloat)pixels;

    Swift

    func scroll(inMinDirection range: ISCIRange, byPixels pixels: Double)

    Parameters

    range

    ISCIRange instance to zoom.

    pixels

    The amount of pixels to scroll.

  • From the starting ISCIRange, scrolls to a new range by the the specified number of pixels in Max direction.

    Declaration

    Objective-C

    - (void)scrollInMaxDirection:(nonnull id<ISCIRange>)range
                        byPixels:(CGFloat)pixels;

    Swift

    func scroll(inMaxDirection range: ISCIRange, byPixels pixels: Double)

    Parameters

    range

    ISCIRange instance to zoom.

    pixels

    The amount of pixels to scroll.

  • From the starting ISCIRange, scrolls to a new range by the the specified number of pixels.

    Declaration

    Objective-C

    - (void)scroll:(nonnull id<ISCIRange>)range byPixels:(CGFloat)pixels;

    Swift

    func scroll(_ range: ISCIRange, byPixels pixels: Double)

    Parameters

    range

    ISCIRange instance to zoom.

    pixels

    The amount of pixels to scroll.

  • Performs clipping of passed range using clipMode.

    Declaration

    Objective-C

    - (void)clipRange:(nonnull id<ISCIRange>)range
            toMaximum:(nonnull id<ISCIRange>)maximumRange
         withClipMode:(SCIClipMode)clipMode;

    Swift

    func clipRange(_ range: ISCIRange, toMaximum maximumRange: ISCIRange, with clipMode: SCIClipMode)

    Parameters

    range

    ISCIRange instance to zoom.

    maximumRange

    ISCIRange instance to zoom.

    clipMode

    The SCIClipMode value.