Switch card-content by clicking on a button


I´m switching from openhab to HomeAssistant. Lovelace is (imho) much more advanced and can display more advanced frontends. Anyway, one thing I can not reproduce.
This pictures displays it best:

I want to quickly view my “power history stats” from different time periods. I figured out how to store these information (utility_meter) but don’t get how to build that kind of view.

Thanks in advance!

The custom state switch card can do this:

Ahh very cool, thank you.
Especially the picture at the “Transitions” Part looks like the “button” I’m looking for.

The creator’s name is very similiar to yours :wink:

Thanks for your work!

Ha. No, not me.