Hi @tehnexus and @Luidgi,
I don’t think it’s possible to place the label inside the wedge and the percent outside, at least not on a single pie trace.
But, here’s a work around that might work for you. If you create a figure with two identical
Pie traces they will exactly overlap each other. So if you display the percentage on the outside of the first trace (the one behind) and the label on the inside of the second trace (the one in front) you’ll get the appearance that I think you want.
from plotly.offline import iplot, init_notebook_mode
import plotly.graph_objs as go
labels = ['Oxygen','Hydrogen','Carbon_Dioxide','Nitrogen']
values = [4500,2500,1053,500]
common_props = dict(labels=labels,
trace1 = go.Pie(
trace2 = go.Pie(
iplot([trace1, trace2], filename='basic_pie_chart')
Hope that helps!