Bar graph leaps one hour behind (Lovelace)

I have this entity in a custom integration that is being updated every 5 minutes, each time around the whole hour it is being reset to zero. This is the result:
image

What’s strange is that this screenshot was taken 16:07 and the last bar is from 15.00 so it leaps one hour behind. Anyone knows how to solve this? I’ve the following configuration for this graph.

Sensor definition is like:

MySensor(coordinator, ecu, “daily_energy_production”,
label=“Daily Energy Production”,
unit=UnitOfEnergy.KILO_WATT_HOUR,
devclass=SensorDeviceClass.ENERGY,
icon=SOLAR_ICON,
stateclass=SensorStateClass.TOTAL_INCREASING
),