
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIAxisInfo
@interface SCIAxisInfo : NSObject <ISCIAxisInfoUpdatable>
Provides information on an axis hit test operation.
See
-[ISCIAxisInfoProvider getAxisInfo]
.
-
The axis id.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *axisId;
-
The axis title.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *axisTitle;
-
The attributed axis title.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSAttributedString *attributedAxisTitle;
-
The
SCIAxisAlignment
value.Declaration
Objective-C
@property (nonatomic) SCIAxisAlignment axisAlignment;
-
The data value.
Declaration
Objective-C
@property (nonatomic, strong) id<ISCIComparable> _Nonnull dataValue;
-
The data value formatted with
ISCIAxisCore.textFormatting
string.Declaration
Objective-C
@property (nonatomic, copy) id<ISCIString> _Nonnull axisFormattedDataValue;
-
The data value formatted with
ISCIAxisCore.cursorTextFormatting
string.Declaration
Objective-C
@property (nonatomic, copy) id<ISCIString> _Nonnull cursorFormattedDataValue;
-
Flag indicating whether the associated axis is horizontal axis.
Declaration
Objective-C
@property (nonatomic) BOOL isHorizontal;
-
Flag indicating whether the associated axis is XAxis.
Declaration
Objective-C
@property (nonatomic) BOOL isXAxis;
-
Creates a new instance of
SCIAxisInfo
class.Declaration
Objective-C
- (nonnull instancetype)initWithAxis:(nonnull id<ISCIAxis>)axis;
Parameters
axis
The parent axis
-
Updates this instance with latest value which does not depend on data value.
Declaration
Objective-C
- (void)update;
-
Helper method which creates and updates
SCIAxisInfo
instance with latest information provided by axis.Declaration
Objective-C
+ (nonnull SCIAxisInfo *)obtainFor:(nonnull id<ISCIAxis>)axis andDataValue:(nonnull id<ISCIComparable>)dataValue;
Parameters
axis
The
ISCIAxis
instance for which.dataValue
The dataValue with which
SCIAxisInfo
should be updated.Return Value
The
SCIAxisInfo
instance with latest information provided by axis.