Lovelace: mini graph card

You could do that with the state switch card.

The graph displayed would depend on the state of the input select.