Black Lives Matter. Please consider donating to Black Girls Code today.

Traces closing after re-render plotly


I’m having a weird issue with a chart. The first time I render the chart (using Plotly.newPlot()), the traces render as expected. But, when I try to update the chart, either using Plotly.redraw() or Plotly.newPlot(), the traces “closes”. Like, the first and the last marker on a trace are connected, like they were closing the svg path. Here’s an example:

Why this may happen? Is there a way to prevent this kind of behavior?

Hello, Im unsure if anyone could help you if you not give us an code-example which reproduces this behaviour. Maybe anyone will have an idea…