With two or more top-level <VictoryChart> children, each chart becomes
one panel carrying its own layers (ids '{panelIdx}_{layerIdx}', unique
across the whole figure), its own axis labels, its title prop as the
panel display name, and the svgIndex ordinal of its rendered svg among
all top-level Victory components. Charts without supported data components
produce an entry with empty layers so panel indices stay aligned with the
rendered SVGs; callers must drop those entries before emitting the MAIDR
grid.
With fewer than two charts the extraction falls back to the original
single-panel behavior (all supported data components flattened into one
subplot with monotonic ids), so existing single-chart output is unchanged.
In multi-panel mode, standalone data components outside any VictoryChart
are ignored (with a console warning) because they cannot be reliably bound
to a panel SVG.
Groups Victory children into subplot panels.
With two or more top-level
<VictoryChart>children, each chart becomes one panel carrying its own layers (ids'{panelIdx}_{layerIdx}', unique across the whole figure), its own axis labels, itstitleprop as the panel display name, and thesvgIndexordinal of its rendered svg among all top-level Victory components. Charts without supported data components produce an entry with emptylayersso panel indices stay aligned with the rendered SVGs; callers must drop those entries before emitting the MAIDR grid.With fewer than two charts the extraction falls back to the original single-panel behavior (all supported data components flattened into one subplot with monotonic ids), so existing single-chart output is unchanged.
In multi-panel mode, standalone data components outside any VictoryChart are ignored (with a console warning) because they cannot be reliably bound to a panel SVG.