
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIRangeFactory
@interface SCIRangeFactory : NSObject
Defines a factory for ISCIRange
implementations.
-
Gets the shared
SCIRangeFactory
instance.Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;
-
Creates a new range for specified data type.
Declaration
Objective-C
- (nonnull id<ISCIRange>)newRange:(SCIDataType)dataType;
Parameters
dataType
Range values data type.
Return Value
The new range instance.
-
Creates a new range for specified type with specified min/max values.
Declaration
Objective-C
- (nonnull id<ISCIRange>)newRange:(SCIDataType)dataType withMin:(nonnull id<ISCIComparable>)min andMax:(nonnull id<ISCIComparable>)max;
Parameters
dataType
Range values data type.
min
Min value.
max
Max value.
Return Value
The new range instance.