Sensor attributes to a plotly chart

I want to create a bar chart on total_consumed from sensor attrubutes for each day.
I don’t understand how to code the filter.
The date attribute seems to have no name? The state indicate number of attributes (dates)


I made some templating to try to understand the data:

{% for d in  states.sensor.ev9_daily_driving_stats.attributes %}
{% set e = state_attr('sensor.ev9_daily_driving_stats',d).total_consumed%}

Thanks!