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 SCICategoryDateAxis and 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) -> Double

    Parameters

    index

    The 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) -> Int

    Parameters

    dataValue

    The 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) -> Int

    Parameters

    dataValue

    The data value to transform

    mode

    The search mode

    Return Value

    The index of data point