iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCICategoryLabelProvider
@protocol ISCICategoryLabelProvider <ISCILabelProvider>
Protocol to define a LabelProvider for category axes
-
Gets the Bar Time Frame in seconds. This is the number of seconds that each data-point represents on the
SCICategoryDateAxisand is required for proper rendering.Declaration
Objective-C
@property (nonatomic, readonly) double barTimeFrame;Swift
var barTimeFrame: Double { get } -
Transforms an index of a data point to the corresponding data value.
Declaration
Objective-C
- (double)transformIndexToData:(NSInteger)index;Swift
func transformIndexToData(_ index: Int) -> DoubleParameters
indexThe index to transform
Return Value
The data value
-
Transforms a data value to the nearest data point index.
Declaration
Objective-C
- (NSInteger)transformDataToIndex:(double)dataValue;Swift
func transformDataToIndex(_ dataValue: Double) -> IntParameters
dataValueThe data value to transform
Return Value
The index of the data point
-
Transforms a data value to the corresponding data point index using the specified search mode.
Declaration
Objective-C
- (NSInteger)transformDataToIndex:(double)dataValue withSearchMode:(SCISearchMode)mode;Swift
func transformDataToIndex(_ dataValue: Double, searchMode mode: SCISearchMode) -> IntParameters
dataValueThe data value to transform
modeThe search mode
Return Value
The index of data point
View on GitHub