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

    Type Alias VictoryLayerData

    VictoryLayerData:
        | { kind: "bar"; points: BarPoint[] }
        | { kind: "line"; points: LinePoint[][] }
        | { kind: "scatter"; points: ScatterPoint[] }
        | { kind: "box"; points: BoxPoint[] }
        | { kind: "candlestick"; points: CandlestickPoint[] }
        | { kind: "histogram"; points: HistogramPoint[] }
        | { kind: "segmented"; points: SegmentedPoint[][] }

    Discriminated union of all supported layer data shapes.

    Using a discriminated union instead of unknown ensures that each layer's data is validated at extraction time and carries the correct type through to the MAIDR schema conversion.