MAIDR JavaScript API
    Preparing search index...

    Interface ChartJsOptions

    Chart.js options object.

    interface ChartJsOptions {
        indexAxis?: "x" | "y";
        scales?: Record<string, ChartJsScale>;
        plugins?: Record<string, unknown>;
        showLine?: boolean;
        circumference?: number;
        rotation?: number;
        elements?: {
            line?: {
                stepped?: boolean | "after" | "before" | "middle";
                fill?:
                    | string
                    | number
                    | boolean
                    | { target?: string
                    | number
                    | boolean; value?: number };
            };
        };
    }
    Index

    Properties

    indexAxis?: "x" | "y"
    scales?: Record<string, ChartJsScale>
    plugins?: Record<string, unknown>
    showLine?: boolean

    Chart-wide showLine; a dataset's own setting wins over it.

    circumference?: number

    How much of the circle an arc chart sweeps, in degrees. Less than the full 360 is what turns a doughnut into a dial.

    rotation?: number

    Where the sweep starts, in degrees clockwise from the top.

    elements?: {
        line?: {
            stepped?: boolean | "after" | "before" | "middle";
            fill?:
                | string
                | number
                | boolean
                | { target?: string
                | number
                | boolean; value?: number };
        };
    }

    Chart-wide element defaults; a dataset's own setting wins over these.