Skip to content

Ticktext containing "" provokes changing plot size #1723

Open
@DavidBarke

Description

@DavidBarke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions