First negative connection to first positve line chart Ploty.js

Hey all. I’ve been using Plotly.js to create line charts in JavaScript. However, I have one issue. When there are both negative and positive on the x axis, for some reason it connects the first negative x axis to the first positive x axis, and I would like to disable that.

For example:
x: [-10, -5, -3, 0, 5]
y: [1, 2, 3, 4, 5]

It would connect the -10 point on the x axis to the 0 point on the x axis. There would still be another line with everything else, but like I said there is an extra one.