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

SCINumberRange

@interface SCINumberRange : SCIRangeBase

Defines a base class for all numeric ranges.

  • min

    Gets or sets the min value of this range.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSNumber *_Nonnull min;

    Swift

    var min: NSNumber { get set }
  • max

    Gets or sets the max value of this range.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSNumber *_Nonnull max;

    Swift

    var max: NSNumber { get set }
  • Gets the difference (max - min) of this range.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull diff;

    Swift

    var diff: NSNumber { get }
  • Sets the min, max values on the ISCIRange.

    Declaration

    Objective-C

    - (void)setMinTo:(nonnull NSNumber *)min maxTo:(nonnull NSNumber *)max;

    Swift

    func setMinTo(_ min: NSNumber, maxTo max: NSNumber)

    Parameters

    min

    New min value.

    max

    New max value.

  • Sets the min, max values on the ISCIRange without equals checks.

    Declaration

    Objective-C

    - (void)setForcedMinTo:(nonnull NSNumber *)min maxTo:(nonnull NSNumber *)max;

    Swift

    func setForcedMinTo(_ min: NSNumber, maxTo max: NSNumber)

    Parameters

    min

    New min value.

    max

    New max value.

  • Performs the union of two ISCIRange instances.

    Declaration

    Objective-C

    - (void)unionWithMin:(nonnull NSNumber *)min max:(nonnull NSNumber *)max;

    Swift

    func union(withMin min: NSNumber, max: NSNumber)

    Parameters

    min

    The min value.

    max

    The max value.