Is there any way to add markers to Scatter plot only when the zoom level shows small number of data and hide it otherwise?

Greetings,

When I add the following code to my Scatter chart, it shows both line and markers on my Scatter chart. It works well.

fig.update_traces(
hoverinfo=“name+x+text”,
line={“width”: 0.5},
marker={“size”: 8},
mode=“lines+markers”,
showlegend=False
)

When the size of my data increases, above code makes the chart page irresponsive. Plotly cannot add markers to an scatter when the size of data is beyond ~100,000 or more.

Is there any way to add markers to Scatter plot only when the zoom level shows small number of data and hide it otherwise?

Thank you,

I’d like to know if this is possible too?