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

SCIRangeBase

@interface SCIRangeBase : NSObject <ISCIRange> {
  id<ISCIMath> _math;
}

Defines the base class for ISCIRange, used throughout SciChart for visible, data and index range calculations.

  • Creates a new instance of SCIRangeBase.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRange:(nonnull SCIRangeBase *)range
                                  andMath:(nonnull id<ISCIMath>)math;

    Swift

    init(range: SCIRangeBase, andMath math: ISCIMath)

    Parameters

    range

    The SCIRangeBase instance to initialize new range with.

    math

    The generic `ISCIMath’ helper.

  • Creates a new instance of SCIRangeBase.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMin:(nonnull id<ISCIComparable>)min
                                    max:(nonnull id<ISCIComparable>)max
                                andMath:(nonnull id<ISCIMath>)math;

    Swift

    init(min: ISCIComparable, max: ISCIComparable, andMath math: ISCIMath)

    Parameters

    min

    The min value to initialize range with.

    max

    The max value to initialize range with.

    math

    The generic `ISCIMath’ helper.