✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

How does Plotly decide which overlapping line is on top?

For example, in this plot, why is X_2R_4E the foremost line?

It doesn’t look like Plot.ly is doing any sort of color blending for overlapping lines - instead, it looks like it’s just choosing one line to be the foremost and hiding everything else underneath that one.

Is this correct? What decides which line is in the foreground?

We drawn line in the order provided in the data array passed to Plotly.newPlot('graph', data)

That makes sense, thanks much for the quick and clear response!