1

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 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks for your reply! That radioitem works for me. But I'm wondering that can I achieve this with buttons? or I can decorate radioitem into button?
You absolutely can format it as a button. @王仁宏 – why don't you post it as a new Q and I'll answer it.
Also, if you found this answer helpful, I would appreciate if you upvoted or accepted it @王仁宏

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.