iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
-
Helper factory method for creating default
SCIDateRangewith non zero values.Declaration
Objective-C
+ (nonnull instancetype)defaultNonZeroRange;Swift
class func defaultNonZero() -> SelfReturn Value
new
SCIDateRangeinstance where min - the day before current date, max - the day after current date. -
Gets or sets the min value of this range.
Declaration
Objective-C
@property (nonatomic, strong) NSDate *_Nonnull min;Swift
var min: Date { get set } -
Gets or sets the max value of this range.
Declaration
Objective-C
@property (nonatomic, strong) NSDate *_Nonnull max;Swift
var max: Date { get set } -
Gets the difference (max - min) of this range.
Declaration
Objective-C
@property (nonatomic, readonly) 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
minThe min value to initialize range with.
maxThe 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
rangeThe
SCIDateRangeinstance 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
minNew min value.
maxNew max value.
-
Sets the min, max values on the
ISCIRangewithout equals checks.Declaration
Objective-C
- (void)setForcedMinTo:(nonnull NSDate *)min maxTo:(nonnull NSDate *)max;Swift
func setForcedMinTo(_ min: Date, maxTo max: Date)Parameters
minNew min value.
maxNew max value.
-
Performs the union of two
ISCIRangeinstances.Declaration
Objective-C
- (void)unionWithMin:(nonnull NSDate *)min max:(nonnull NSDate *)max;Swift
func union(withMin min: Date, max: Date)Parameters
minThe min value.
maxThe max value.
View on GitHub