MAIDR Documentation - v4.4.0
    Preparing search index...

    One drawn element of a mark, paired with what it encodes.

    The adapter walks a mark group into these before it knows which MAIDR trace type it is building, because the decision depends on what the walk finds — two rects sharing a band make a stacked bar, one rect per band makes a plain one.

    interface MarkDatum {
        element: Element;
        x: string | number;
        y: number;
        series?: string;
        yMin?: number;
        yMax?: number;
        xMin?: number;
        xMax?: number;
    }
    Index

    Properties

    element: Element

    The rendered SVG element, for selector stamping.

    x: string | number

    Value on the categorical or independent axis.

    y: number

    Value on the dependent axis.

    series?: string

    Series name, from the mark's color channel, when the mark is split.

    yMin?: number

    Lower bound of a stacked segment or a bin, in data units.

    yMax?: number

    Upper bound of a stacked segment or a bin, in data units.

    xMin?: number

    Bin start, for binned rect marks.

    xMax?: number

    Bin end, for binned rect marks.