charturbo - v0.1.0
    Preparing search index...

    Interface LineXAxisOptions

    x axis of a line chart.

    interface LineXAxisOptions {
        format?:
            | ChartFormatSpec
            | (
                (
                    value: number,
                    granularity?: ChartTimeGranularity | undefined,
                ) => string
            );
        labelRotate?: number;
        reverse?: boolean;
        scale?: ChartScaleType;
        show?: boolean;
        tickCount?: number;
        title?: string;
        type?: "time" | "numeric";
    }

    Hierarchy (View Summary)

    Index
    format?:
        | ChartFormatSpec
        | (
            (
                value: number,
                granularity?: ChartTimeGranularity | undefined,
            ) => string
        )

    Tick label text. Line x ticks receive the series x value (or the sample index without x), bar x ticks the bar / category index, y ticks the data value (percent for 'percent' bar charts). Time x ticks also receive the calendar boundary the tick lands on; the line tooltip calls it without one. Also a number format spec ('.2f', ',.0f', '.1%', '.2s', '$,.2f', 'compact', 'bytes') or Intl.NumberFormatOptions (chart-format.ts), compiled once for the chart locale (time axes: the spec formats epoch ms as a number).

    labelRotate?: number

    Tick label rotation in degrees, positive = anticlockwise like ECharts axisLabel.rotate (-90..90; default 0). x axes only: rotated labels end at their tick (negative angles start there), are thinned by their rotated footprint, and grow the derived bottom padding (not an explicit padding.bottom)

    reverse?: boolean

    Inverted axis: values grow downward (y) / leftward (x) (default: false)

    Default: 'linear'

    show?: boolean

    Show tick labels (default: true)

    tickCount?: number

    Target tick count (default: chart density, grid rows for y, ~1 per 90 px for x)

    title?: string

    Axis title drawn beside the tick labels

    type?: "time" | "numeric"

    Scale of series x: 'numeric' nice 1 / 2 / 5 x 10^n ticks, 'time' epoch-ms ticks on calendar boundaries of the chart's time zone (timeZone, default 'local'), labelled in that zone (default: 'time' when x is Date[]).