Historic attributes to graph

Hi!

I’d like to display the history of some attributes with Mini Graph card. I don’t know if this would be a feature request for the card or if this can be solved another way so the data is already correctly prepared for Mini Graph Card. I’ve never seen attributes being saved this way.

This is how the attributes of the entity in question are set:

"2025-05-31":
  total_consumed: 7919
  engine_consumption: 7311
  climate_consumption: 188
  onboard_electronics_consumption: 420
  battery_care_consumption: 0
  regenerated_energy: 2321
  distance: 53.100006103515625
"2025-05-30":
  total_consumed: 3161
  engine_consumption: 2323
  climate_consumption: 318
  onboard_electronics_consumption: 520
  battery_care_consumption: 0
  regenerated_energy: 1377
  distance: 26.199996948242188
...

If I use 2025-05-31.total_consumed as the attribute I can get the data for this specific date, but how can I get the history of the total_consumed and other values for all available/last x dates?