# Can you create choropleth subplots

**URL:** <https://community.plotly.com/t/can-you-create-choropleth-subplots/2425>\
**Category:** 📊 Plotly Python\
**Created:** [October 15, 2016, 7:02am UTC](https://community.plotly.com/t/can-you-create-choropleth-subplots/2425 "2016-10-15T07:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bote795](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bote795](https://community.plotly.com/u/bote795)\
**Post date:** [October 15, 2016, 7:02am UTC](https://community.plotly.com/t/can-you-create-choropleth-subplots/2425/1 "2016-10-15T07:02:20Z")

</div>

I am trying to create two subplots of choropleth maps side by side  
But when I append\_trace the choropleth  
I get  
PlotlyDictKeyError: ‘yaxis’ is not allowed in ‘choropleth’

```
Z:\Anaconda2\lib\site-packages\plotly\graph_objs\graph_objs.pyc in append_trace(self, trace, row, col)
    934 trace['xaxis'] = ref[0]
    935 trace['yaxis'] = ref[1]
--> 936 self['data'] += [trace]

```

It seems as though it assumes it will have a yaxis.  
Does this mean that it doesn’t support the map in subplots or am i doing something wrong?

trying to do this [multiple subplots](https://plot.ly/python/map-subplots-and-small-multiples/) except using map. since that is actually a scattered plot.  
Thanks!

---

<div class="post-metadata">

**Author:** ![chelsea](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chelsea/32/196_2.png) [@chelsea](https://community.plotly.com/u/chelsea)\
**Post date:** [October 16, 2016, 2:04pm UTC](https://community.plotly.com/t/can-you-create-choropleth-subplots/2425/2 "2016-10-16T14:04:21Z")

</div>

Hi there,  
As previously mentioned, maps are not plotted on a cartesian system of coordinates (x/y). Here you can find an example of map subplots: [https://plot.ly/python/map-subplots-and-small-multiples/](https://plot.ly/python/map-subplots-and-small-multiples/)

^ That example is for `type = 'scattergeo'` but `type = 'choropleth'` will work the same way.

---

<div class="post-metadata">

**Author:** ![david\_p](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@david\_p](https://community.plotly.com/u/david_p)\
**Post date:** [October 27, 2021, 3:39pm UTC](https://community.plotly.com/t/can-you-create-choropleth-subplots/2425/3 "2021-10-27T15:39:36Z")

</div>

Hi there,

I was trying to use this solution to combine some cartesian charts and a choropleth map. Adding new attributes to the layout (such as the geo\_key in your example, ‘chart1’ up to ‘chart3’ in mine) throughs the following error:

`ValueError: Invalid property specified for object of type plotly.graph_objs.Layout: 'chart1'`

Is this solution still compatible with plotly 5.0 ?

How would you add each chart’s specific domain.x and domain.y info to the layout? It seems to me the layout only takes one single value for each domain.x and domain.y.

Thanks!
