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

ISCILabelFormatter

@protocol ISCILabelFormatter <ISCIDoubleLabelFormatter>

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:(nonnull id<ISCIAxisCore>)axis;

    Swift

    func update(_ axis: ISCIAxisCore)

    Parameters

    axis

    The current axis.

  • Updates ticks collection according to provided axis ticks.

    Declaration

    Objective-C

    - (BOOL)updateTickLabels:
                (nonnull NSMutableArray<id<ISCIString>> *)formattedTickLabels
                  majorTicks:(nonnull SCIDoubleValues *)majorTicks;

    Swift

    func updateTickLabels(_ formattedTickLabels: NSMutableArray, majorTicks: SCIDoubleValues) -> Bool

    Parameters

    formattedTickLabels

    The list where formatted ticks should be stored.

    majorTicks

    Major ticks to use for tick labels.

    Return Value

    Return true if ticks were formatted by this ISCILabelFormatter implementation, so there is no need to format them in parent ISCILabelProvider, otherwise return false