iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIAxisCollection
@interface SCIAxisCollection : SCIObservableCollection <id <ISCIAxis>>
Contains a collection of ISCIAxis and allows getting of axis by Id.
-
Gets the primary axis in the collection. This is the first axis that has
ISCIAxis.isPrimaryAxisset to YES, ornil- if none exists. -
Gets the value indicating whether this collection has primary axis.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasPrimaryAxis;Swift
var hasPrimaryAxis: Bool { get }Return Value
YES - if any of the Axes in the collection have
ISCIAxis.isPrimaryAxisset to YES. -
Gets the axis specified by id if it exists, otherwise returns nil.
Declaration
Objective-C
- (nonnull id<ISCIAxis>)getAxisById:(nonnull NSString *)axisId;Swift
func getAxisById(_ axisId: String) -> any ISCIAxisParameters
axisIdThe axis id.
Return Value
The axis with specified id if it exists, otherwise returns nil.
-
Gets the axis specified by id if it exists, otherwise returns nil.
Declaration
Objective-C
- (nonnull id<ISCIAxis>)getAxisById:(nonnull NSString *)axisId assertAxisExists:(BOOL)assertAxisExists;Swift
func getAxisById(_ axisId: String, assertAxisExists: Bool) -> any ISCIAxisParameters
axisIdThe axis id.
assertAxisExistsIf set to YES assert and throw if the axis does not exist.
Return Value
The axis with specified id if it exists, otherwise returns nil.
View on GitHub