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

ISCIViewportManagerBase

@protocol ISCIViewportManagerBase <ISCIAttachable>

Defines the interface to a ViewportManager, which may be used to intercept the X-Axis and Y-Axis ranging during render and invalidate the parent surface.

  • Called when the VisibleRange changes for an axis.

    Note

    Override in derived types to set a custom value.

    Declaration

    Objective-C

    - (void)onVisibleRangeChanged:(nonnull id<ISCIAxisCore>)axis
                         oldRange:(nonnull id<ISCIRange>)oldRange
                         newRange:(nonnull id<ISCIRange>)newRange
                      isAnimating:(BOOL)isAnimating;

    Swift

    func onVisibleRangeChanged(_ axis: ISCIAxisCore, oldRange: ISCIRange, newRange: ISCIRange, isAnimating: Bool)

    Parameters

    axis

    THe axis instance.

    oldRange

    The old VisibleRange.

    newRange

    The new VisibleRange.

    isAnimating

    Flag indicating whether the VisibleRange is animating.

  • Called during render to update XAxis ISCIAxisCore.visibleRange.

    Note

    Override in derived types to set a custom value.

    Declaration

    Objective-C

    - (void)updateXAxis:(nonnull id<ISCIAxisCore>)xAxis;

    Swift

    func updateXAxis(_ xAxis: ISCIAxisCore)

    Parameters

    xAxis

    The XAxis to update

  • Called during render to update YAxis ISCIAxisCore.visibleRange.

    Note

    Override in derived types to set a custom value.

    Declaration

    Objective-C

    - (void)updateYAxis:(nonnull id<ISCIAxisCore>)yAxis;

    Swift

    func updateYAxis(_ yAxis: ISCIAxisCore)

    Parameters

    yAxis

    The YAxis to update

  • Called during render to perform autoranging.

    Note

    Override in derived types to set a custom value.

    Declaration

    Objective-C

    - (void)tryPerformAutoRange:(nonnull id<ISCIAxisCore>)axis;

    Swift

    func tryPerformAutoRange(_ axis: ISCIAxisCore)

    Parameters

    axis

    The ISCIAxisCore instance to perform autorange on.