apache / apache/echarts

[Bug] SVG ARIA doesn’t work with SSR

Open
#19,191 0 comments 3 reactions 0 assignees View on GitHub
bug en SSR SVG
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
15h 17m
Merged PRs (30d)
5

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://jsfiddle.net/t3h9x2zb/5/

### Steps to Reproduce

1. Follow the steps in the guide to set up the SSR SVG rendering
2. Activate ARIA by setting the option aria: { enabled: true }

### Current Behavior

```
TypeError: Cannot read properties of null (reading 'setAttribute')
at dom.setAttribute('aria-label', ariaLabel);
```

### Expected Behavior

Should not fail or the SSR documentation should mention that ARIA is not supported

### Environment

```markdown
- OS: Ubuntu 23.04
- Browser: Node.js
- Framework: Astro
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by following the SSR SVG rendering guide and the linked minimal reproduction with aria: { enabled: true } in the Node.js environment. Trace the failing setAttribute call and confirm the result against the expected behavior: SSR should not fail, or its documentation should clearly state that ARIA is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.