Last point on chart linked to first point sometimes

I have a strange behavior I can’t reproduce.

Sometimes my graph displays cleanly, and a simple reload makes it weird with a straight line between last point and first point.

(I can post only 1 image, so just the bad one !)

Any idea to avoid that ?

Is it because my JSON data are not sorted ?

Thanks for reaching out.

Are you able to share your notebook or post the relevant code so we can take a look at why this is happening?

That’d be my guess, too!

That was it! I thought X-Axis would be magically ordered and graph by time.
I keep learning, thanks !