Weird Graph with Plotly

Hi everyone,
I plotted a weird graph. Would you mind giving me some hints for solving this?
Thank you.

Hi,

I would need a minimal working example to give you a better answer, but this type of issue is usually related to unsorted data. Plotly does not sort data in increasing order, so line/timeseries plots might show this type of error.

You’re right! Thank you so much!
I solved the issue by adding ‘order by’ in the SQL Query.