Skip to content

inherit = FALSE does not respect crosstalk SharedData #1242

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

Closed
cpsievert opened this issue Apr 20, 2018 · 0 comments
Closed

inherit = FALSE does not respect crosstalk SharedData #1242

cpsievert opened this issue Apr 20, 2018 · 0 comments

Comments

@cpsievert
Copy link
Collaborator

library(plotly)
library(crosstalk)

txhousing %>%
  group_by(city) %>%
  SharedData$new(~city, "Select a city") %>%
  plot_ly(x = ~date, y = ~median) %>%
  add_lines(alpha = 0.2) %>%
  add_ribbons(
    x = c(2016, 2017), ymin = c(150000, 160000), ymax = c(200000, 190000),
    inherit = FALSE
  )
Error: Columns `x`, `ymin`, `ymax` must be length 1 or 8602, not 2, 2, 2

This error isn't very helpful -- the error is occuring because the ribbon trace is inheriting the crosstalk key, but it shouldn't...

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

No branches or pull requests

1 participant