Hello Community,
With the support of @empet I was able to create nice choropleth plots to visualize runoffs in german communities during the flooding in last summer.
My next step would be to add a slider in order to scroll through the most interesting 48 hours to show the water runoff within the communities.
I have found only the possibility to update values by creating 48 traces and to switch 47 to unvisible and the actual one to visible. But creating 48 traces with 2000 shapes, names and values would lead to unnecessary large html files whereas only the values z (for coloring and hover-text) would need different values.
Therefore, I would prefer a possibility to update only the z values of the one choropleth trace.
Until now, I have not found any example in the web, where only e.g. y-values of a scatterplot are updated when changing the slider position (without making N-1 traces invisible and 1 visible)
Does one know, if and in the case of yes, how z values (of choropleth) or y values (of scatter traces) can be updated when updating the slider (without defining plenties of traces with redundant data for x coordinates for scatterplots or geojsons for choropleth)?
Thanks for any hints!