charturbo - v0.1.0
    Preparing search index...

    Interface ExtraYAxisOptions

    Extra y axis of a line chart (axes.extraY): a y axis plus its side, offset and color.

    interface ExtraYAxisOptions {
        autoscale?: "all" | "none" | "visible";
        breaks?: ChartAxisBreak[];
        color?: ColorInput;
        format?:
            | ChartFormatSpec
            | (
                (
                    value: number,
                    granularity?: ChartTimeGranularity | undefined,
                ) => string
            );
        labelRotate?: number;
        max?: number;
        min?: number;
        nice?: boolean;
        offset?: number;
        position?: "left" | "right";
        reverse?: boolean;
        scale?: ChartScaleType;
        show?: boolean;
        tickCount?: number;
        title?: string;
    }

    Hierarchy (View Summary)

    Index
    autoscale?: "all" | "none" | "visible"

    'all' (default): extent of all data, re-derived when data changes. 'visible': extent of the visible series inside the x zoom window, re-derived on zoom / pan / data updates with hysteresis (kept until the data leaves the domain or spans < 60% of it). 'none': derived once, then kept while data changes.

    breaks?: ChartAxisBreak[]
    color?: ColorInput

    Tick labels, title and axis line color (default: theme text colors)

    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)

    max?: number

    Fixed top of the domain (default: from the data)

    min?: number

    Fixed bottom of the domain (default: from the data)

    nice?: boolean

    Expand data-derived ends to whole tick steps; fixed min / max stay exact (default: true)

    offset?: number

    Extra CSS px between this axis and the previous one on its side (default: 0)

    position?: "left" | "right"

    Side of the plot (default: 'right'); stacked outward after the axes already there

    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