Ticktext containing "" provokes changing plot size
未关闭
还没有人认领这个 Issue。
plotly.js
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Create a plot with the following code and click any of 'Zoom in', 'Zoom out', 'Autoscale' or 'Reset axes'. The size of the plot shrinks and gets back to its original size after a few clicks. If ticktext doesn't contain "" everything works as expected.
library(plotly)
plot_ly() %>%
layout(
xaxis = list(
tickvals = 1:2,
ticktext = c("", "a")
)
)
This happens with plotly 4.9.2. I tested with older versions (4.8.0, 4.9.0, 4.9.1) and couldn't reproduce this behaviour.
I also couldn't reproduce it with the latest version of plotly.js.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 plotly 4.9.2 运行提供的 plot_ly()、layout() 和 xaxis ticktext 示例,然后将其行为与报告中提到的最新 plotly.js 进行比较。在存在空 ticktext 值时,跟踪 Zoom in、Zoom out、Autoscale 和 Reset axes 路径。当这些控件不再缩小图表时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100