echarts-www icon indicating copy to clipboard operation
echarts-www copied to clipboard

Online builder file fails to output ARIA descriptions of charts

Open jegtnes opened this issue 5 months ago • 3 comments

Hi there,

Thanks for all your hard work on ECharts and the great documentation for it.

Issue description

When using the online builder to generate a leaner bundle containing only the features I am using, I noticed that switching to this bundle from the full uncompressed bundle broke the ARIA description.

I wondered if this was related to the features I had removed, so for experiment's sake I tried building an Echarts file with every chart, coordinate system, and component, which I would expect to be functionally identical to the full, uncompressed echarts.js distribution, but this still didn't generate ARIA descriptions, and the bundle generated file was about ~300KB smaller than the full distribution.

Reproduction

I have created a minimal test case showing this behaviour in action. Here is an HTML document rendering a chart with the builder bundle, not outputting an aria-label. Here is an HTML document rendering a chart with the full bundle, successfully outputting an aria-label.

Expected outcome

Generating an Echarts file from the online builder that includes the functionality to successfully output an aria-label from a chart.

Actual outcome

Generating an Echarts file from the online builder does not include the functionality to successfully output an aria-label from a chart.

Let me know if you need any more information or if I can help to address this issue in any way. Many thanks!

jegtnes avatar Jun 09 '25 12:06 jegtnes

The online builder currently doesn't support importing the ARIA component as there is no icon entry available. As a temporary solution, you can manually add ,aria to the components parameter in the URL.

For example,

https://echarts.apache.org/en/builder/echarts.html?charts=bar,line,pie&api=true&components=gridSimple,title,legendScroll,tooltip,aria

plainheart avatar Jun 11 '25 01:06 plainheart

@plainheart Thanks so much for getting back to me, I appreciate that and I'm glad it's still possible to generate a bundle with the ARIA component in it. If I made an icon to represent ARIA or found one with an appropriate license, would you welcome a PR to add this to the website?

jegtnes avatar Jun 11 '25 12:06 jegtnes

Absolutely! Feel free to submit it when ready. Please keep the icon style as consistent as possible.

plainheart avatar Jun 12 '25 00:06 plainheart