Skip to content
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

Rangeslider start/end do not work with ggplotly #1551

Open
mgei opened this issue Jun 16, 2019 · 1 comment
Open

Rangeslider start/end do not work with ggplotly #1551

mgei opened this issue Jun 16, 2019 · 1 comment

Comments

@mgei
Copy link

mgei commented Jun 16, 2019

This works:

d <- tibble::tibble(
  time = seq(as.Date("2016-01-01"), as.Date("2016-08-31"), by = "days"),
  y = rnorm(seq_along(time))
)

plot_ly(d, x = ~time, y = ~y) %>%
  add_lines() %>%
  rangeslider(start = d$time[5], end = d$time[50])

With ggplotly start/end are ignored. Why?

p <- d %>% ggplot(aes(x = time, y = y)) +
  geom_line()

ggplotly(p, dynamicTicks = T) %>% 
  rangeslider(start = d$time[5], end = d$time[50])

R version 3.6.0 (2019-04-26)
plotly ‘4.9.0’

@cpsievert
Copy link
Collaborator

WIP at #1497

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