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

ISCIDoubleLabelFormatter

@protocol ISCIDoubleLabelFormatter

Defines the interface to a double value label formatter

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

    Declaration

    Objective-C

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

    Swift

    func formatLabel(_ dataValue: Double) -> Any

    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:(double)dataValue;

    Swift

    func formatCursorLabel(_ dataValue: Double) -> Any

    Parameters

    dataValue

    The data value to format.

    Return Value

    The formatted value.