Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How do I disable pie percentage text

$
0
0

@SpaceIntern wrote:

How to I disable this percentage indicator.I want the pie chat to look more clean.I want to add the percentages to the legend if that is possible?

Here is the code I have written for this pie chart so far

fig = go.Figure(data=[go.Pie(labels=labels, values=values)] )
fig.update_traces(hoverinfo=‘percent+value’,textinfo=‘value’)
fig.update_layout(
title_text=‘Message Type Distrubution Pie Chart’, # title of plot

)
print("updated Channel Distrabution")
return fig

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles