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

    Interface MaidrSubplot

    Subplot data structure containing optional legend and trace layers. A subplot groups one or more layers (traces) that share the same coordinate space.

    const subplot: MaidrSubplot = {
    layers: [
    { id: '0', type: 'bar', axes: { x: 'X', y: 'Y' }, data: [...] },
    { id: '1', type: 'line', axes: { x: 'X', y: 'Y' }, data: [...] },
    ],
    };
    interface MaidrSubplot {
        legend?: string[];
        selector?: string;
        layers: MaidrLayer[];
    }
    Index

    Properties

    legend?: string[]

    Legend labels for multi-series plots.

    selector?: string

    CSS selector for the subplot container element.

    layers: MaidrLayer[]

    Array of trace layers in this subplot.