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

    - (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

    - (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()