Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] duplicate id=0 on multiple svg charts #18194

Closed
frankliu197 opened this issue Jan 19, 2023 · 1 comment · Fixed by ecomfe/zrender#1002
Closed

[Bug] duplicate id=0 on multiple svg charts #18194

frankliu197 opened this issue Jan 19, 2023 · 1 comment · Fixed by ecomfe/zrender#1002
Assignees
Labels
bug en This issue is in English PR: doc unchanged SVG
Milestone

Comments

@frankliu197
Copy link

Version

5.3.2

Link to Minimal Reproduction

https://codesandbox.io/embed/polished-monad-v0vopl?fontsize=14&hidenavigation=1&theme=dark

Steps to Reproduce

Inspect the html construct of the two graphs and see the following
image

Both graphs have a rect element with an ID of 0.

Current Behavior

If you create more than one graphs on the same page, there will be duplicate html tags with the same ID. The id attribute should be unique to provide machine-readable identifier for elements on the page. More on this accessibility issue:
https://www.w3.org/WAI/WCAG21/Techniques/html/H93
https://www.w3.org/WAI/WCAG21/Techniques/failures/F77
https://www.ibm.com/able/requirements/requirements/#4_1_1
Is it necessary to put an ID on the rect tag?

Expected Behavior

All IDs should be unique.

Environment

https://codesandbox.io/embed/polished-monad-v0vopl?fontsize=14&hidenavigation=1&theme=dark

Any additional comments?

No response

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 19, 2023
@helgasoft
Copy link

there is an id property, but even if set, it does not show up anywhere apparently ... (?!)

@Ovilia Ovilia self-assigned this Feb 1, 2023
@Ovilia Ovilia added SVG and removed pending We are not sure about whether this is a bug/new feature. labels Feb 1, 2023
@Ovilia Ovilia added this to the TBD milestone Feb 1, 2023
@Ovilia Ovilia changed the title [Bug] Duplicate Id=0 on multiple svg charts (IBM Accessibility Issue: 4.1.1) [Bug] duplicate id=0 on multiple svg charts Apr 3, 2023
@Ovilia Ovilia modified the milestones: TBD, 5.5.0 Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English PR: doc unchanged SVG
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants