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.

Hi @empet, I was looking for the shp file example. Could you please repost or perhaps share an example using the mapbox?

Hi, I was also looking for ways to create bivariate choropleth maps and I stumbled upon the example @empet provided in this thread. That helped me a lot, thank you.

Based on the example, i built a notebook reproducing the Texas example and adding another one. You can find it on Kaggle and on GitHub:

I am posting this here in case somebody else is searching for the same thing. Iā€™m happy to get feedback on it.