Energy dashboard and IotaWatt

I’ve installed the latest Home Assistant using the KVM image. No real problems configuring things that have needed configuring. My energy readings come from IotaWatt which I’ve had for 2 years. Other than, obviously, energy import, I’ve got energy export and solar production sensors.
The daily energy usage graph starts fine. As solar production kicks in, what should be shown as export is still (by colour at least) shown as import. As the end of the day nears, the dashboard still shows solar production and also export.
I’m assuming some form of incorrect configuration but am wondering if anyone can point me to what it might be?

As an aside, in case anyone is wondering about the atypical solar use graph, I’ve got an EV charger capable of only using excess solar power. Hence the solar use graph tracks the solar production pretty closely on days the battery needs charging and the EV is at home.

Can you show the history graphs for your three wh sensors for the same time period as displayed in the energy dashboard above?