Pie charts (2x) + Bar chart

I have a vertical orientation bar chart and using make_subplots I have added two pie chart with rows = 1 and columns = 2.

This is what I am getting. Is there a way I can reduce the pie chart size and reposition them using x & y coordinates or something (?) so I can effecitvely utilize the bottom space to show these two pie charts.

Hi @rajpmehta ,

Try to play around with number of grids.

Maybe you can try to set rows=2 and cols=3, instead of rows=1and cols=2.

fig = make_subplots(rows=2, cols=3, specs=[[{}, {},{}],[{}, {'type':'domain'}, {'type':'domain'}]])

Put first pie chart at 2nd row and 2nd column.
Second one at 2nd row and 3rd column.
The size of pie charts will be decreased.

Or you can adjust the number of grids as needed.
Hope this help.

1 Like

Hi @farispriadi

Thank you for your input. I did eventually fix it. The only things if I want to make them a bit small and downwards (optional), but i guess there would be some padding feature on subplots or perhaps i’ll play with domain in go.Pie to make them a bit smaller .

This was the final code

image

1 Like