I combine Choropleth and Scatter map but the animation frame does not synchronize the data.
The animation frame on the Year only works with the scatter but does not change the data on the choropleth
fig = px.scatter_geo(dataset, locations="iso_alpha",
hover_name="Country", text = "Country",size="Value_Air",
animation_frame="Year", animation_group="Country",
)
fig_px = px.choropleth(dataset,
locations = "iso_alpha",
color="Value_Co2",
hover_name="Country",
animation_frame="Year",
#animation_group="Country",
hover_data={'iso_alpha':False,
})
fig.add_trace(
fig_px.data[0]
)
fig.show()
.
The animation frame on the date change only the scatter but not change the country background.
how should i do? can anyone help?