iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
-
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. -
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
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.