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

    Interface VegaLiteEncoding

    The encoding channels that the adapter inspects when mapping a Vega-Lite spec to a MAIDR trace.

    interface VegaLiteEncoding {
        x?: VegaLiteChannelDef;
        y?: VegaLiteChannelDef;
        xOffset?: VegaLiteChannelDef;
        yOffset?: VegaLiteChannelDef;
        color?: VegaLiteChannelDef;
        fill?: VegaLiteChannelDef;
        row?: VegaLiteChannelDef;
        column?: VegaLiteChannelDef;
    }
    Index

    Properties

    Modern Vega-Lite dodge channel — when paired with a categorical field, Vega-Lite places bars of each subcategory side-by-side within the same x slot. The adapter inspects this to classify a bar mark as DODGED rather than STACKED.

    Vertical counterpart of xOffset.