Skip to content

docs: 新增「分组柱状图」文档 #6965

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

Merged
merged 2 commits into from
May 30, 2025

Conversation

pengcai6
Copy link
Contributor

@interstellarmt
Copy link
Contributor

image
这个不适合的场景 g2 中已经有相关的示例,可以这样举例:
原始case,不适合的场景 : https://g2.antv.antgroup.com/examples/general/interval/#bar-dodged 删除 slice: 6
优化方式1:
选择排名前几的分组: https://g2.antv.antgroup.com/examples/general/interval/#bar-dodged
优化方式2:
如果要展示完整数据,由于分组和分类过多导致柱子过多过密,可读性不佳。推荐使用堆叠柱状图:
https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked
优化方式2-better:
切换为横向,更适合大数据:
https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked-horizontal

@interstellarmt interstellarmt merged commit b8959c5 into antvis:v5 May 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OSCP AntV Open Source Contribution Plan
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants