Pie chart with labels on slices

Hello, I want to generate a pie chart with the labels near the slices, instead of having a legend. The result should look like this:


Is there some option to modify the legend in this way?

Hi @aretor,

you can use textposition = 'outside' https://plot.ly/python/reference/#pie-textposition

1 Like

It works, thanks. I want to add that in order to change the name of the labels the text property should be used.

Please, Are there any way to take out this text and let only in the tooltip and the legend?