Skip to content

scollZoom not working with nticks #1509

Open
@trafficonese

Description

@trafficonese

When using scrollZoom together with nticks, the plot gets stuck when trying to zoom around.

A few scrolls are working, then the plot gets stuck, That also hapens, when zooming in first.

library(plotly)

df <- data.frame(
  ts = seq(as.POSIXct("2019-03-20 00:00:00"), by = "hour", length.out = 24),
  val = sample(1:100, 24)
)

plot_ly() %>% 
  add_bars(data = df, x = ~ts, y = ~val) %>% 
  layout(dragmode = "select", autosize = TRUE,
         bargap = 0.05,
         xaxis = list(type = "date",
                      nticks = 24,
                      tickmode = "auto"
         )) %>% 
  config(scrollZoom = TRUE)

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