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.
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 chartExample: Using the wrapper component
Example: Using the hook with `<Maidr>`