Hi @Joicy
The answer is in this post (“bumping the resolution to 50m should do the trick”). fig_map.update_layout(geo_scope="africa", geo_resolution=50)
If you want Seychelles to appear, you’ll have to change the scope to world
.
Using your same data:
https://raw.githubusercontent.com/joicy/bioinfo/main/df_map_last_frame.csv
import pandas as pd
import plotly.express as px
df_map = pd.read_csv("data.csv")
fig_map = px.choropleth(df_map,
locations='sov_a3', color='cum_counts',
hover_name='country', animation_frame="date_2weeks",
color_continuous_scale="algae",
range_color=[0, max(df_map['cum_counts'])],
labels={'cum_counts': 'Number of genomes'}
)
fig_map.update_layout(geo_scope="africa", geo_resolution=50)
fig_map.show()
P.S. you don’t need graph_objects here.