Provides a <MaidrMuiCharts> wrapper component and a useMuiChartsAdapter
hook for making MUI X Charts (@mui/x-charts) accessible through MAIDR's
audio sonification, text descriptions, braille output, and keyboard
navigation.
Remarks
Requires React 18 or 19 and @mui/x-charts v9 as peer dependencies. The
adapter reads the chart's own series, xAxis, yAxis, dataset and
layout props, and targets the rendered marks through the data-series
attributes and class names MUI X stamps on them — the chart's SVG is never
modified.
Supported MUI X chart components:
BarChart → bar, dodged bar, stacked bar (and normalized), horizontal bar
LineChart → line, area, stacked area (and normalized)
ScatterChart → scatter plot (one layer per series)
Public MUI X Charts adapter API for MAIDR.
Provides a
<MaidrMuiCharts>wrapper component and auseMuiChartsAdapterhook for making MUI X Charts (@mui/x-charts) accessible through MAIDR's audio sonification, text descriptions, braille output, and keyboard navigation.Remarks
Requires React 18 or 19 and
@mui/x-chartsv9 as peer dependencies. The adapter reads the chart's ownseries,xAxis,yAxis,datasetandlayoutprops, and targets the rendered marks through thedata-seriesattributes and class names MUI X stamps on them — the chart's SVG is never modified.Supported MUI X chart components:
BarChart→ bar, dodged bar, stacked bar (and normalized), horizontal barLineChart→ line, area, stacked area (and normalized)ScatterChart→ scatter plot (one layer per series)PieChart→ pie / doughnut (one layer per ring)Example: Using the wrapper component
Example: Using the hook with `<Maidr>`