MAIDR JavaScript API
    Preparing search index...

    Interface VictoryLayerInfo

    Intermediate representation of a Victory data layer before conversion to the MAIDR schema.

    interface VictoryLayerInfo {
        id: string;
        victoryType: VictoryComponentType;
        data: VictoryLayerData;
        xAxisLabel?: string;
        yAxisLabel?: string;
        dataCount: number;
        legend?: string[];
        categoriesReversed?: boolean;
        pointsReversed?: boolean;
        orientation?: Orientation;
    }
    Index

    Properties

    id: string

    Index-based layer ID.

    The Victory component type that produced this layer.

    Extracted and validated data points from the Victory component.

    xAxisLabel?: string

    X-axis label (from VictoryAxis or fallback).

    yAxisLabel?: string

    Y-axis label (from VictoryAxis or fallback).

    dataCount: number

    Number of data elements expected in the DOM (used for selector validation).

    legend?: string[]

    Legend labels for multi-series segmented charts.

    categoriesReversed?: boolean

    Set when the layer's points were turned round to match an inverted independent axis (#1018).

    The marks themselves are not reordered -- Victory renders them in data order whichever way the axis runs -- so the tagger has to name them one by one instead of leaving a single selector to resolve positionally, or the reading and the highlight would point at opposite ends of the chart.

    pointsReversed?: boolean

    Whether this layer's points were turned round for an inverted axis.

    The line half of the same fix categoriesReversed serves for the bar family, and separate from it because the two halves move differently. A bar names each mark with its own attribute so the highlight can be permuted; a line is one <path>, and there is nothing to permute -- the layer declares domMapping.pointOrder instead and LineTrace reverses the vertices it parsed (#1007, #1031).

    orientation?: Orientation

    Which way the layer is drawn, when the chart says so.

    Victory turns a bar chart on its side with horizontal, on the component or on the enclosing <VictoryChart>. Only the bar family carries this onward -- see MaidrLayer.orientation for why, and for the fact that Victory's own data stays x = category, y = value either way, so nothing is swapped alongside it.