# Plotly Pie chart

**URL:** https://community.plotly.com/t/plotly-pie-chart/53839
**Category:** 📊 Plotly Python
**Created:** [June 14, 2021, 5:36am UTC](https://community.plotly.com/t/plotly-pie-chart/53839 "2021-06-14T05:36:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sherlocked](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Sherlocked](https://community.plotly.com/u/Sherlocked)
#### Post date: [June 14, 2021, 5:36am UTC](https://community.plotly.com/t/plotly-pie-chart/53839/1 "2021-06-14T05:36:42Z")

</div>

![Screenshot_20210613-101720_Gallery](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/99d389482a9bc9f0d4557947d3fcfa83cc8c1052.jpeg)  
How can I achieve this chart with plotly?

---

<div class="post-metadata">

### Author: ![Emmanuelle](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emmanuelle/32/7853_2.png) [@Emmanuelle](https://community.plotly.com/u/Emmanuelle)
#### Post date: [June 14, 2021, 9:21pm UTC](https://community.plotly.com/t/plotly-pie-chart/53839/2 "2021-06-14T21:21:27Z")

</div>

Hi @Sherlocked welcome to the forum! I don’t think this is possible with only one pie chart, but they are enough options in plotly pie charts (see [Pie Charts | Python | Plotly](https://plotly.com/python/pie-charts/) and [pie Traces | Python | Plotly](https://plotly.com/python/reference/pie/)) so that you can hack the figure with two pie charts and transparent colors. I got started with the code below, probably you can tune the code even more so that it looks like your screenshot.

```auto
import plotly.express as px
import plotly.graph_objects as go
percents = [35, 65]

fig = go.Figure()
fig.add_trace(go.Pie(values=percents, hole=.9, rotation=150, 
                     marker_colors=['#00000000', 'black'],
                     textfont_size=1))
fig.add_trace(go.Pie(values=percents, hole=.8, rotation=150, 
                     marker_colors=['blue', '#00000000'],
                     textfont_size=20))
fig.show()

```

![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/1/13c82247b455d641889634045e362b7b685da4b5.png)
