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

SCIDateLabelFormatter

@interface SCIDateLabelFormatter : NSObject <ISCILabelFormatter>

Defines a default label formatter which is used by SCIDateTimeLabelProvider.

  • Creates a new instance of SCIDateLabelFormatter class.

    Declaration

    Objective-C

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

    Swift

    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 SCIDateLabelFormatter class.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithLabelFormatter:(nonnull NSDateFormatter *)labelFormatter
          cursorLabelFormatter:(nonnull NSDateFormatter *)cursorLabelFormatter;

    Swift

    init(label labelFormatter: DateFormatter, cursorLabel cursorLabelFormatter: DateFormatter)

    Parameters

    labelFormatter

    A NSDateFormatter instance which should be used to format axis labels.

    cursorLabelFormatter

    A NSDateFormatter instance which should be used to format cursor labels.