iOS Charting Documentation - SciChart iOS Charts SDK v3.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 (readonly, nonatomic) double barTimeFrame;

    Swift

    var barTimeFrame: Double { get }
  • Transforms an index of a data point to the corresponding NSDate data value.

    Declaration

    Objective-C

    - (NSDate *)transformIndexToData:(NSInteger)index;

    Swift

    func transformIndexToData(_ index: Int) -> Date!

    Parameters

    index

    The index

    Return Value

    The data value

  • Transforms a NSDate value to the nearest data point index.

    Declaration

    Objective-C

    - (NSInteger)transformDataToIndex:(NSDate *)dataValue;

    Swift

    func transformDataToIndex(_ dataValue: Date!) -> Int

    Parameters

    dataValue

    The NSDate value

    Return Value

    The index of the data point

  • Transforms a NSDate value to the corresponding data point index using the specified search mode.

    Declaration

    Objective-C

    - (NSInteger)transformDataToIndex:(NSDate *)dataValue
                       withSearchMode:(SCISearchMode)mode;

    Swift

    func transformDataToIndex(_ dataValue: Date!, searchMode mode: SCISearchMode) -> Int

    Parameters

    dataValue

    The NSDate value

    mode

    The search mode

    Return Value

    The index of data point