The new ScatterGL is great - but there might be a bug. I can’t provide a video/screen but hopefully someone can help reproduce it as follows. Dependencies:
Use Scattergl instead of Scatter. Include text= in your options for the scatter and mode=markers
Have an initial selection from the dropdown so data loads automatically
After loading (scatter points all load fine), add a second choice from the dropdown. Data and scatter points are shown for both selections
Remove the first (default) choice from the dropdown. The scatter points for the second dropdown choice should be shown, but instead it’s blank. Curiously, if you hover over the chart, the text for each point displays but the points themselves are blank.
Ideas welcome. @chriddyp , I can send videos etc privately if needed.
OK, got it. I’d try removing animate=True for now - it currently doesn’t work for graphs that are adding or removing traces. Also, animations are only supported for the SVG-style charts (as they use CSS animations) and not for the WebGL style charts.
@chriddyp I’m encountering a similar bug. I have a function to generate a ScatterGL graph, from which I’m generating a list of html.Div with differing scatters. As long as I have 8 or less rendered, they display fine. Any more, and the older ones have the same problem @will described. Minimal example, my scatter function is called: get_scatter.
def get_scatter_divs():
scatters = []
for param in range(12):
scatter = html.Div([get_scatter(param)])
scatters.append(scatter)
# scatters = scatters[:9]
return scatters
get_scatter_divs is called in the layout within a div. As is, then 4 of the scatter plots are missing the markers even though the hover data is still viewable. If I uncomment the line, then they all work. I’ve made sure that the figure IDs are all unique, and that I don’t have animate=True. I’m not really sure how to fix this, as I was hoping to scale up to more plots and creating them all dynamically would be ideal. Any help would be appreciated.