`mirror: "all"`: spurious ticks
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
The documentation of mirror states that:
If "all", axis lines are mirrored on all shared-axes subplots. If "allticks", axis lines and ticks are mirrored on all shared-axes subplots.
I.e., from what I gather mirror: "all" should not put any tick marks but merely draw a line. Presently, however, it does put tick marks on the mirrored axis of the first subplot (or even solitary plot).
Previously, a variant of this was noted in #4136 where mirror: "all" would behave like mirror: "allticks". This was addressed in #4140, but the fix seems only to have addressed part of the issue, however. Specifically:
| Example | Behavior | |
|---|---|---|
| Before #4140 (v1.49.3) | https://codepen.io/thchr/pen/yLbpowE | Ticks on all mirrored axes |
| After #4140 (v1.49.4 and later) | https://codepen.io/thchr/pen/qBmpXge | Ticks on mirrored axis of first subplot |
What I thought expected behavior would be is this (i.e. tick on no mirrored axis; only the left-most non-mirrored y-axis of the first subplot):

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用链接的 CodePen 示例重现该行为,并比较共享轴子图中的 mirror: "all" 与 mirror: "allticks"。跟踪负责第一个子图的轴镜像行为,然后验证 mirror: "all" 会绘制镜像线但不带刻度标记,而预期不进行镜像的轴会保留其刻度。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100