[FEATURE]: Provide a way to enable aligning the 0-point of overlaid axes
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
I have a plotly chart with lines and columns with both negative and positive values. The 0 on both y axes is at a different spot. It would be nice if there were an option in layout.yaxis where one could align the 0s without having to calculate the domain.
Here is a codepen illustrating the issue: https://codepen.io/mtadams007/pen/ByNgyjJ?editors=0010
The solution proposed in https://github.com/plotly/plotly.js/issues/1845#issuecomment-312896241 does not work as in that example both axes start with 0 and have no negative numbers.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 开始,重现具有负值和正值的重叠 y 轴的不同零点位置。查看 issue #1845 中之前的讨论以及 layout.yaxis 的行为;当一个显式选项能够在不手动计算 domain 的情况下将两个轴对齐到零,并且涵盖演示的案例时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100