I’m pretty new to Plotly, and I am currently plotting approximately 100K points on the line charts, but it was super laggy when I tried to zoom in, zoom out as well as adjusting the range slider.
So I searched online and tried ‘scattergl’. The speed of plotting performance did boost up significantly, but the ranger slider disappeared.
The range slider is super convenient for checking a specific part of the lines. since the lines are very long, so I was wondering is there any way to keep the range slider while using ‘scattergl’ or other method to speed up the plotting performance.
The following is part of my code:
df11 = pandas.read_excel(‘foo11.xlsx’)
l11 = df11.values.tolist()
trace11 = Scattergl(
x = list(df11.columns),
y = l11,
mode = ‘lines+markers’,
name = ‘test11’
data = [trace0,…, trace11]
layout = dict(
fig = dict(data=data, layout=layout)