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

Moving dygraph with second Axis with Shift key rescales "y2" #236

Open
NanisTe opened this issue Nov 8, 2019 · 0 comments
Open

Moving dygraph with second Axis with Shift key rescales "y2" #236

NanisTe opened this issue Nov 8, 2019 · 0 comments

Comments

@NanisTe
Copy link

NanisTe commented Nov 8, 2019

Following minimal example shows what I am facing.

test <- xts(cbind(A = rep(c(10,10,10,0,10,10,10),50),B =rep(c(10,10,10,3,10,10,10),50))
            ,order.by = Sys.Date()-c(1:(7*50)))

dygraph(test,main = "New Haven Temperatures") %>% 
  dySeries(color = "red") %>% 
  dySeries(color = "blue", axis = "y2") %>% 
  dyAxis("y", valueRange = c(0,15)) %>%
  dyAxis("y2", independentTicks = F, valueRange = c(0,15)) %>% 
  dyRangeSelector()

Both y Axis are scaled to the same range. Zooming into the graph and moving it left right rescales minumum and maximum of "y2" Axis if I move within the graph holding Shift key and moving with the mouse. Moving the graph with the rangeselector at the bottom does not have this side effect.

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