Ticktext containing "" provokes changing plot size
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided plot_ly(), layout(), and xaxis ticktext example with plotly 4.9.2, then compare its behavior with the latest plotly.js mentioned in the report. Trace the Zoom in, Zoom out, Autoscale, and Reset axes paths while an empty ticktext value is present. Done means these controls no longer shrink the plot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100