0
votes

By following the tutorial, I know how to restyle my graph with buttons. But is it possible I can restyle multiple graphs at the same time?

What I’m trying to do is displaying different world indices in different data length. Let’s say there are 5 buttons [1 month], [6 months], [1 year], [5 years] and [10 years]. And I want different graphs display specific data length according to which button has been clicked on.

Thanks!

1

1 Answers

0
votes

If you're working with plotly dash, yes.

You would create a dropdown menu (or radio items) – since only one button can be selected at a time (I presume). On change of selection, you would then pass the reformatting command to a list of graph objects. It's that simple.

See more here: https://dash.plot.ly/interactive-graphing