Black Lives Matter. Please consider donating to Black Girls Code today.

Creating a bivariate choropleth map

Hello!

I would like to create a bivariate choropleth map, like the one done by @empet as shown here: https://plot.ly/~empet/14734.embed

However, as far as I can see on Google, there is no example of an approach to do this.

Can anyone shed some light on this?

Any help is greatly appreciated!

Hi @nd823,
Welcome to Plotly forum!!
Here https://plot.ly/~empet/15190
you find how to define a bivariate colorscale,
and a bivariate choropleth, in this notebook https://plot.ly/~empet/15191.

Much more simple is to use shapefiles, instead of topojson file, for the counties of an US state or other country.
This is an example of choropleth from a shapefile: https://plot.ly/~empet/15052.

Thank you so much, @empet, for getting back to me! I have been seeing a lot of cool stuff of yours around. :slight_smile:

I will work my way through the notebook and see how I fare!

1 Like

Hello, thank you for your examples. Iā€™m interested in use shapefiles to create bivariate choropleth map in ArcMAP. Unfortunately, your link with shapefile does not exist. Is there any possibility to get a new one? Regards.

@Sylwia I removed that notebook when Plotly Chroplethmapbox was introduced. Meanwhile another user asked for it and I reposted it here https://plot.ly/~empet/15354 You should adapt the code in this notebook to get a bivariate choropleth.

@empet Thank you for your response. I just started with python. Could you put the sample code to generate bivariate choropleth map directly using shapefile? It would help me a lot. Regards.