iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCILabelFormatter

@protocol ISCILabelFormatter

Defines the protocol to a label formatter which is used by SCIFormatterLabelProviderBase.

  • Updates this label formatter with values provided by axis.

    Declaration

    Objective-C

    - (void)updateWithAxis:(id<ISCIAxisCore>)axis;

    Swift

    func update(_ axis: ISCIAxisCore!)

    Parameters

    axis

    The current axis.

  • Formats a label for the axis from the specified data-value passed in.

    Declaration

    Objective-C

    - (id<ISCIString>)formatLabel:(double)dataValue;

    Swift

    func formatLabel(_ dataValue: Double) -> 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

    - (id<ISCIString>)formatCursorLabel:(double)dataValue;

    Swift

    func formatCursorLabel(_ dataValue: Double) -> ISCIString!

    Parameters

    dataValue

    The data value to format.

    Return Value

    The formatted value.