How to get daily or recurring values in a bar graph

Hey everyone, so I have created a template that calculates how much solar I end up generating each day.

      - name: "Enphase Production Today"
        unique_id: enphase.production_today
        value_template: "{{ (state_attr('sensor.enphase_production','whToday') | float) / 1000 }}"
        device_class: power
        unit_of_measurement: kW

Every day that sensor resets to zero. What I want to get, is a bar graph that shows for example the last 7 days individually, what the production was for each of those days at its peak before it resets to zero. Any suggestions on how to do that?

Custom mini-graph card or apex charts can plot a weeks worth of daily maximum values of a sensor.