MAIDR JavaScript API
    Preparing search index...

    Where each MAIDR layer's marks came from, so a navigation position can be turned back into a uPlot series and data index.

    interface UPlotLayerSource {
        kind: "stacked" | UPlotSeriesKind;
        seriesIdxs: number[];
        bases?: (number | null)[];
        sourceIdxs: number[][];
        xScale: string;
        yScale: string;
    }
    Index

    Properties

    kind: "stacked" | UPlotSeriesKind

    What the layer draws; stacked is a stack of bar series.

    seriesIdxs: number[]

    u.series index of each MAIDR row: one row, except for a line or area layer (a row per series) and a stack (a row per series, bottom first).

    bases?: (number | null)[]

    A stack only: for each row, the series it is stacked on (the lower series of its band), or null for the bottom of the stack.

    sourceIdxs: number[][]

    sourceIdxs[row][col] is the index into the series' data columns that the MAIDR point at (row, col) was read from. For a scatter layer there is one row, indexed by the layer's data index.

    xScale: string

    The scale the x values are drawn against.

    yScale: string

    The scale the y values are drawn against.