Long-term statistics weird graph

Capture
Hi, the image shows that long-term statistics does some calculation where the graph ends up with multiple datapoints at the same time, sure here the sensor was offline and when back online had a different value than before but just a bit odd behaviour