iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCILabelProvider
@protocol ISCILabelProvider <ISCIAxisProviderBase>
Protocol to define a LabelProvider
which allows programmatic overriding of axis labels.
-
Formats a label for the axis from the specified
data-value
passed in.Declaration
Objective-C
- (nonnull id<ISCIString>)formatLabel:(nonnull id<ISCIComparable>)dataValue;
Swift
func formatLabel(_ dataValue: ISCIComparable) -> ISCIString
Parameters
dataValue
The data value to format.
Return Value
The formatted value.
-
Formats a label for the cursor, from the specified
data-value
passed in.Declaration
Objective-C
- (nonnull id<ISCIString>)formatCursorLabel: (nonnull id<ISCIComparable>)dataValue;
Swift
func formatCursorLabel(_ dataValue: ISCIComparable) -> ISCIString
Parameters
dataValue
The data value to format.
Return Value
The formatted value.
-
Gets the list of formatted axis tick labels for currently attached axis.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<id<ISCIString>> *_Nonnull formattedTickLabels;
Swift
var formattedTickLabels: [ISCIString] { get }