Ternary plot missing `automargin` option in `layout.ternary`
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
Currently the Ternary plot: https://plotly.com/javascript/ternary-plots/
doesn't have automargin option in each axis in the layout.ternary: https://plotly.com/javascript/reference/layout/ternary/
Therefore, it may happen that the title of the axis is cropped, not only in the case of long titles, but more often due to smaller screen sizes (or figure sizes).
This is more likely for the title text in axes B and C located in the bottom being cropped, e.g.:
Titles are being cropped!
Demo example: https://codepen.io/Lexachoc/pen/MYgVGoW
The title in axis B has no margin to adjust the position and is therefore cropped.
It would be very helpful to add this option (or a similar one to achieve the same thing, avoiding the title text being cropped) to the ternary plot.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 layout.ternary 参考和链接的 ternary plot 示例开始,然后跟踪轴标题和边距的处理方式。当 ternary 轴提供 automargin 选项或等效行为,并且标题(尤其是轴 B 和 C 上的标题)在小图中不再被裁剪时,工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100