I have one dataframe that produces two different bubbles on the same map by using traces. This works well to show on a specific day although when trying to animate both of these only fig1 will be animated and not the fig2. Is it possible to have both fig1 and fig2 to be animated based on the animation occurring in fig1?
covid = pd.read_csv('covid_19_data.csv')
fig1 = px.scatter_geo(covid, locations="Country/Region", locationmode="country names",animation_frame = "ObservationDate", hover_name = "Country/Region", size = "Confirmed", size_max = 60, projection= "natural earth")
fig2 = px.scatter_geo(covid, locations="Country/Region", locationmode="country names",animation_frame = "ObservationDate", hover_name = "Country/Region", size = "Tweets", size_max = 60, projection= "natural earth")
fig1.add_traces(fig2._data)
fig1.data[1].marker.color = 'rgba(255,0,0,0.1)'
fig1.write_html('second.html', auto_open = True)
The current output from this code is the following map, where the animation frame is clear and works to increase the size and locations of the blue dots which represent cases ( fig1 ) and the red marker indicates tweets ( fig2 )