Hi @Thimo ,
Here is an example that I created in one of my apps of creating buttons that do what you asked regarding switching between time frames. Check the upper right corner of the chart.
Cheers, Daniel Underhill Data Designs, Inc.