@rekurt/openkline - v0.2.0
    Preparing search index...

    Class TimeScaleBehavior

    Default horizontal-scale behavior: the X domain is Unix-seconds time, the candle's t field. Reproduces the pre-F7 axis exactly (labels via formatTime), so the standard chart is unchanged.

    Implements

    Index

    Constructors

    Properties

    uniform: true

    When true (all built-ins), bars are positioned by uniform buffer index and domainToCoord01 is ignored — the standard, fully-tested geometry.

    Accessors

    Methods

    • Install (or clear with null) a locale-aware date formatter so axis labels localize. The chart wires this from its i18n bundle when a locale is configured; with no locale it stays null and labels are byte-for-byte the legacy formatTime output.

      Parameters

      • fn: ((time: number, resolution: string) => string) | null

      Returns void

    • Update the resolution used for label formatting.

      Parameters

      • resolution: string

      Returns void