Anurag Gupta

Authored Content

Authored Comments

I wrote this article.
Plotly has an "inbuilt geometry" for countries of the world. If you want to plot for a different geometry the you need to provide it to the attribute geojson of the function.
You can download country data from:- as shape files and then converted to GeoJSON using the Python library Geopandas.
A small script (written by me) to convert data from shape files to geojson is available at:-

I have downloaded the geometry for Indian states and then "converted" it into geojson. It is available here:-