Bad label positioning in pie-charts
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
Depending on the number of categories and the amount of text in labels, the positioning of labels in pie-charts might be unsatisfying. The labels might overlap the title/subtitle. Here is an example image showing the problem:
This codepen contains relevant code for reproducing the issue.
There is also a related issue, which suggests adding an optional space between title and plot. But as this space would definitively depend on the actual data, I'd say plotly should handle this for the user automatically.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 复现开始,并将其与相关 issue #4932 进行比较。跟踪饼图标签布局在类别数量和标签长度不同时的行为,然后验证标签不再与标题或副标题重叠,同时保持可读的位置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100