Provides a <MaidrVictory> wrapper component and a useVictoryAdapter
hook for making Victory charts accessible through MAIDR's audio
sonification, text descriptions, braille output, and keyboard navigation.
Remarks
Requires React 18 or 19 and Victory as peer dependencies. The adapter
introspects the Victory chart's React children to extract data and tags
the rendered SVG elements with data-maidr-victory-* attributes for
highlighting.
Supported Victory data components:
VictoryBar → bar chart
VictoryLine → line chart
VictoryScatter → scatter plot
VictoryStack → stacked bar chart
VictoryHistogram → histogram
VictoryBoxPlot → box plot
VictoryCandlestick → candlestick chart
Multi-panel figures: nesting two or more <VictoryChart> components makes
each chart one navigable MAIDR subplot (arrow keys move between panels,
Enter drills in, Escape returns). Name panels via each chart's title prop
and control the grid with the layout prop.
Public Victory adapter API for MAIDR.
Provides a
<MaidrVictory>wrapper component and auseVictoryAdapterhook for making Victory charts accessible through MAIDR's audio sonification, text descriptions, braille output, and keyboard navigation.Remarks
Requires React 18 or 19 and Victory as peer dependencies. The adapter introspects the Victory chart's React children to extract data and tags the rendered SVG elements with
data-maidr-victory-*attributes for highlighting.Supported Victory data components:
VictoryBar→ bar chartVictoryLine→ line chartVictoryScatter→ scatter plotVictoryStack→ stacked bar chartVictoryHistogram→ histogramVictoryBoxPlot→ box plotVictoryCandlestick→ candlestick chartMulti-panel figures: nesting two or more
<VictoryChart>components makes each chart one navigable MAIDR subplot (arrow keys move between panels, Enter drills in, Escape returns). Name panels via each chart'stitleprop and control the grid with thelayoutprop.Example: Using the wrapper component
Example: Using the hook with `<Maidr>`