Converts a rendered ECharts instance into MAIDR's accessible format for
audio sonification, text descriptions, braille output and keyboard
navigation.
Remarks
The adapter must be called after ECharts has drawn, because it locates
marks in the SVG -- register it on the chart's finished event, or call it
from a setTimeout after setOption.
Use the SVG renderer. ECharts defaults to canvas, which draws no
elements to point at, so a canvas chart reads correctly and highlights
nothing.
The readings target echarts 6.1.0, measured in Chromium; the mark
detection in selectors.ts depends on how that version paints, so verify it
if you upgrade.
Apache ECharts adapter for MAIDR.
Converts a rendered ECharts instance into MAIDR's accessible format for audio sonification, text descriptions, braille output and keyboard navigation.
Remarks
The adapter must be called after ECharts has drawn, because it locates marks in the SVG -- register it on the chart's
finishedevent, or call it from asetTimeoutaftersetOption.Use the SVG renderer. ECharts defaults to canvas, which draws no elements to point at, so a canvas chart reads correctly and highlights nothing.
The readings target echarts 6.1.0, measured in Chromium; the mark detection in
selectors.tsdepends on how that version paints, so verify it if you upgrade.Example