Restyle multiple graphs with buttons

Hi,

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!