Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

There is a weird line in my graph

This hasn’t happened before. I don’t know where it could come from.
The graph shouldn’t have a straight line in it, as you can see from my previous graphs.

I figured it out. The data I was using was in a Python dictionary, which is unordered.
I didn’t order it before sending the scatter to plotly API, and the graph making program assumed that the points should be connected based on their order in the Grid. I think it shouldn’t be done like that as a default, but I assume there is a reason to do it that way.