iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIDateRange

@interface SCIDateRange : SCIRangeBase

Defines a range of type NSDate.

  • Helper factory method for creating default SCIDateRange with non zero values.

    Declaration

    Objective-C

    + (nonnull instancetype)defaultNonZeroRange;

    Swift

    class func defaultNonZero() -> Self

    Return Value

    new SCIDateRange instance where min - the day before current date, max - the day after current date.

  • min

    Gets or sets the min value of this range.

    Declaration

    Objective-C

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

    Swift

    var min: Date { get set }
  • max

    Gets or sets the max value of this range.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var diff: Date { get }
  • Initializes a new instance of SCIDateRange.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMin:(nonnull NSDate *)min
                                    max:(nonnull NSDate *)max;

    Swift

    init(min: Date, max: Date)

    Parameters

    min

    The min value to initialize range with.

    max

    The max value to initialize range with.

  • Initializes a new instance of SCIDateRange.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRange:(nonnull SCIDateRange *)range;

    Swift

    init(range: SCIDateRange)

    Parameters

    range

    The SCIDateRange instance to initialize new range with.

  • Sets the min, max values on the ISCIRange.

    Declaration

    Objective-C

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

    Swift

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

    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 NSDate *)min maxTo:(nonnull NSDate *)max;

    Swift

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

    Parameters

    min

    New min value.

    max

    New max value.

  • Performs the union of two ISCIRange instances.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    min

    The min value.

    max

    The max value.