Skip to content

scollZoom not working with nticks #1509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
trafficonese opened this issue Apr 4, 2019 · 1 comment
Open

scollZoom not working with nticks #1509

trafficonese opened this issue Apr 4, 2019 · 1 comment

Comments

@trafficonese
Copy link

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)
@cpsievert
Copy link
Collaborator

This is a plotly.js issue, follow here for progress plotly/plotly.js#3729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants