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

ISCIRangeCalculationHelperBase

@protocol ISCIRangeCalculationHelperBase <ISCIAttachable>

Defines a protocol which used as helper for range calculations on axes throughout SciChart.

  • Gets data range(full extents of the data) of the Axis.

    Declaration

    Objective-C

    - (nonnull id<ISCIRange>)getDataRange:(BOOL)forceCacheUpdate;

    Swift

    func getDataRange(_ forceCacheUpdate: Bool) -> ISCIRange

    Parameters

    forceCacheUpdate

    if true forces full recalculation of data range even if data hasn’t changed.

    Return Value

    data range of axis.

  • Gets the maximum range of the axis, based on the data-range of all series.

    Declaration

    Objective-C

    - (nonnull id<ISCIRange>)getMaximumRange:(BOOL)forceCacheUpdate;

    Swift

    func getMaximumRange(_ forceCacheUpdate: Bool) -> ISCIRange

    Parameters

    forceCacheUpdate

    if true forces full recalculation of maximum range even if data hasn’t changed.

    Return Value

    maximum range of axis.

  • Called internally when data range changes.

    Declaration

    Objective-C

    - (void)onDataRangeChanged;

    Swift

    func onDataRangeChanged()