# Plotly Express choropleth map

**URL:** <https://community.plotly.com/t/plotly-express-choropleth-map/43528>\
**Category:** Dash Python\
**Created:** [August 7, 2020, 8:35pm UTC](https://community.plotly.com/t/plotly-express-choropleth-map/43528 "2020-08-07T20:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauragiragon3](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@lauragiragon3](https://community.plotly.com/u/lauragiragon3)\
**Post date:** [August 7, 2020, 8:35pm UTC](https://community.plotly.com/t/plotly-express-choropleth-map/43528/1 "2020-08-07T20:35:11Z")

</div>

I am trying to make a choropleth map of Colombia. I create an example dataframe to prove if the map works.  
I am using a GeoJson of the colombian cities and I set the featureidkey properly (I guess), but the map doesn’t work.  
Here is my code and the GeoJson is here: [Hello.md · GitHub](https://gist.github.com/A4lfr32/6005403aa6a2e1ddb51ef53860939f23)

df=pd.DataFrame({‘Ciudad’:[‘BOGOTÁ, D.C.’,‘MEDELLÍN’,‘QUIBDÓ’],‘Muertos’:[30,80,90]})

cities = json.load(open(’./data/MunicipiosVeredas1MB.json’, encoding=‘utf-8’))

dcc.Graph(

```
    figure=px.choropleth(

        df, 

        geojson=cities,

        featureidkey='properties.MPIO_CNMBR', 

        locations='Ciudad', 

        color='Muertos',

        color_continuous_scale="Viridis",

        projection="mercator"

    )

)
```
