Open jangorecki opened 10 years ago
It is definitely possible and not too difficult to implement. The code is prepared to sync along y-axis too. It is just a matter of uncommenting this line:
https://github.com/danielkrizian/rChartsDygraphs/blob/master/R/Dygraph.R#L231
and exposing the c("none", "horizontal", "vertica", "both")
options for the existing sync
argument:
https://github.com/danielkrizian/rChartsDygraphs/blob/master/R/Dygraph.R#L61
As you can see, sync
currently supports c(TRUE, FALSE)
only, TRUE
meaning horizontal syncing. Most use cases of working with multiple time series require sync along horizontal axis anyway, so we rushed to roll out the minimum feasible product.
If you wish to contribute, I'll make sure to merge the pull request.
Hi, When zooming in vertically on the multi-layout plot : http://rawgit.com/danielkrizian/rChartsDygraphs/master/examples/multi-layout.html, only the one of the layout is zoomed in. On horizontal zoom it is working for both of the layouts. Regards