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

SCITradeChartAxisLabelFormatter

@interface SCITradeChartAxisLabelFormatter<T : SCICategoryDateAxis *>
    : SCILabelFormatterBase

Defines a default label formatter which is used by SCITradeChartAxisLabelProvider

  • Creates a new instance of SCITradeChartAxisLabelFormatter class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocale:(nonnull NSLocale *)locale
                                  timeZone:(nonnull NSTimeZone *)timeZone;

    Swift

    convenience init(locale: Locale, timeZone: TimeZone)

    Parameters

    locale

    The NSLocale to use by this formatter.

    timeZone

    The NSTimeZone to use by this formatter.

  • Creates a new instance of SCITradeChartAxisLabelFormatter class.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithDateFormatter:
            (nonnull id<ISCICalendarUnitDateFormatter>)dateFormatter
          cursorDateFormatter:
              (nonnull id<ISCICalendarUnitDateFormatter>)cursorDateFormatter;

    Swift

    init(dateFormatter: ISCICalendarUnitDateFormatter, cursorDateFormatter: ISCICalendarUnitDateFormatter)

    Parameters

    dateFormatter

    The formatter for axis labels.

    cursorDateFormatter

    The formatter for cursor.