Template Sensor Graphs showing individual data, want 5 minute summaries. How?

Hi all,

I’ve been using HA for one year now and have finally found something I can not find the answer to online.

I’ve got a heap of template sensors in my HA doing a variety of things, but one thing that is annoying me is that when I click on them to view the 24-hour history, I can see all of the individual data.
What I want to see is the nice summary that comes along with a lot of devices.

Essentially, all of my template sensors look like the left of the below image, and I want to see if there is something I can add to the yaml, to make them to look like the right, where you can see the 5-minute min, mean, and max summarised on the 24-hour history graph.

Thanks for your help.

Assign the sensors a state_class of measurement.

Perfect, that was easy and fixed it. Thanks heaps!