My graph is such:
def fig_geo(feature, states_uts):
fig = go.Figure()
fig = fig.add_trace(
go.Choroplethmap(
geojson=states_uts,
locations=india['state_ut'],
z=india[feature],
featureidkey="properties.name",
colorscale=px.colors.sequential.Reds,
marker={"line": {"width": 0.001, "color": "white"}}
)
).update_layout({
"title": {"text": f"{feature}", "x": 0.5},
"mapbox_style": "carto-positron",
"margin": {"t": 0, "b": 0, "r": 0, "l": 0},
}).update_geos({
# "fitbounds": "locations",
# "scope": "asia"
# "projection_type": "mercator",
# "center": {"lon":78.9629, "lat": 20.5937},
})
return fig
I have tried all options under update_geos
, but nothing seems to have any effect on the global bounds.
Any ideas?