# How to hide labels in sunburst?

**URL:** <https://community.plotly.com/t/how-to-hide-labels-in-sunburst/39761>\
**Category:** Dash Python\
**Created:** [May 19, 2020, 7:41pm UTC](https://community.plotly.com/t/how-to-hide-labels-in-sunburst/39761 "2020-05-19T19:41:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirvikalpa](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@nirvikalpa](https://community.plotly.com/u/nirvikalpa)\
**Post date:** [May 19, 2020, 7:41pm UTC](https://community.plotly.com/t/how-to-hide-labels-in-sunburst/39761/1 "2020-05-19T19:41:41Z")

</div>

how do i hide labels in sunburst chart?

they dont really look good if there are many sections, and sometimes the text even bigger that the section itself - it seems like a bug [https://prnt.sc/sjwd03](https://prnt.sc/sjwd03)

BTW is there any way to hide the labels in particular layer only?

---

<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:** [May 21, 2020, 9:51am UTC](https://community.plotly.com/t/how-to-hide-labels-in-sunburst/39761/2 "2020-05-21T09:51:34Z")

</div>

Hi @nirvikalpa you can hide labels which don’t fit inside sectors using `uniformtext`, as shown [in this example](https://plotly.com/python/sunburst-charts/#controlling-text-fontsize-with-uniformtext). You can also remove the labels you want by setting them to an empty string in the `labels` parameter of the `Sunburst` chart, either all of them or just the ones you want to remove. For example

```auto
import plotly.express as px
df = px.data.tips()
fig = px.sunburst(df, path=['day', 'time', 'sex'], values='total_bill')
fig.update_traces(labels=['',] * len(fig.data[0]['labels']))
fig.show()

```
