I want to show thousands of lines with contrasting colors.
But thousands of categorical colors takes forever to render.
So I I’ve tried
color = lineIndex % 10 but I find that when a color number repeats, plotly connects to the last datapoint of that color.
You can see the effect here:
import pandas as pd
d = pd.DataFrame(dict(
x=[1,2,’’,’’,5,6], #I’ve tried, 0, None, ‘’, etc.
fig = px.line(d, x=‘x’, y=‘y’, color=‘color’)
As you can see, connectgaps has no effect.
is there a way to insist on actual gaps?