MAIDR JavaScript API
    Preparing search index...

    Minimal representation of a Chart.js chart instance.

    interface ChartJsChart {
        isDatasetVisible?: (index: number) => boolean;
        canvas: HTMLCanvasElement;
        data: ChartJsData;
        options: ChartJsOptions;
        config: { type: string };
        scales?: Record<string, ChartJsRuntimeScale>;
        getDatasetMeta: (datasetIndex: number) => ChartJsDatasetMeta;
        setActiveElements: (elements: ChartJsActiveElement[]) => void;
        tooltip?: {
            setActiveElements: (
                elements: ChartJsActiveElement[],
                eventPosition: { x: number; y: number },
            ) => void;
        };
        update: (mode?: string) => void;
    }
    Index

    Properties

    isDatasetVisible?: (index: number) => boolean

    Whether a dataset is drawn. chartjs-chart-pcp needs it because a hidden dataset there is a hidden axis: Chart.js lays out no scale for it, so it is not a column of the drawn chart at all.

    canvas: HTMLCanvasElement
    config: { type: string }
    scales?: Record<string, ChartJsRuntimeScale>

    Runtime scale instances keyed by scale id, laid out with pixel geometry.

    getDatasetMeta: (datasetIndex: number) => ChartJsDatasetMeta
    setActiveElements: (elements: ChartJsActiveElement[]) => void
    tooltip?: {
        setActiveElements: (
            elements: ChartJsActiveElement[],
            eventPosition: { x: number; y: number },
        ) => void;
    }
    update: (mode?: string) => void