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

Stylizing Connected Gaps

If I have a graph with missing/null/NaN data, I know I can connect points using the connectgaps attribute.

Is there any way to apply styling to those segments? For instance, could I make connectgaps have a dash?

Hi @gonzofish, I don’t think this is implemented in the library. A workaround would be to have a first trace with a full line and connectgaps=False, and another one with the same data and a dashed line, with connectgaps=True so that only the gaps would be visible as a dashed line.

1 Like

Oh that’s an interesting approach…I ended up finding the start & end points of the gaps and filling them in with shapes…seemed to work nicely