MAIDR Documentation - v3.73.0
    Preparing search index...

    A Chart.js scale (axis) configuration.

    interface ChartJsScale {
        title?: { text?: string; display?: boolean };
        type?: string;
        stacked?: boolean;
        axis?: "x" | "y";
        position?: string | Record<string, number>;
        stack?: string;
        stackWeight?: number;
    }
    Index

    Properties

    title?: { text?: string; display?: boolean }
    type?: string
    stacked?: boolean
    axis?: "x" | "y"

    Which axis this scale belongs to; defaults from the scale id's first letter.

    position?: string | Record<string, number>

    Which chart edge the scale is placed against. Chart.js also accepts dynamic positions ('center' or an { [scaleId]: value } object), hence the loose type; only the static edge strings participate in axis stacking.

    stack?: string

    Axis-stacking group name (Chart.js >= 3.7). Scales of the same axis kind sharing a stack are laid out in separate, non-overlapping bands — the native Chart.js way to express stacked panels within one canvas.

    stackWeight?: number

    Relative size of this scale's band within its axis stack.