Histroy graphs all wrong for all sensors

Hi,

I have a problem with my HA instalation. Every graph on every entity is showing just a straight line. I tried to delete the DB file to correct it, but the problem reappears. See example of graphs attached :

image

Capture1

As you can see the last measured value does not correspond to the graph at all.

How to fix this ?

Best Regards
Trond Tunheim

Anyone ???