Skip to content

Multiple synchronized plots #298

Closed
Closed
@TonyDIRL

Description

@TonyDIRL

Hi,

Really great library.

Is it possible to build multiple synchronized plots with plotly?

Specifically, I'm looking to emulate the behaviour of dygraphs:
https://rstudio.github.io/dygraphs/gallery-synchronization.html

In python its possible with subplots and the shared_yaxes / shared_xaxes params.
https://plot.ly/python/subplots/

Tried the following but no success:

subplot(
    plot_ly(economics, x = date, y = uempmed),
    plot_ly(economics, x = date, y = unemploy),
    margin = 0.05
) %>% layout(yaxis=list(shared_yaxes=TRUE))

Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions