title: Custom text labels in plotly pie chart
body: <p>I'm trying to add custom text inside of a plotly pie chart.</p>
  <p>I want the largest share to be labeled Rank 1, second largest Rank 2, and so on...</p>
  <p>Is there any way to do this using the <code>texttemplate</code> or some other method?</p>
  <pre><code>import plotly.graph_objects as go
  labels = list('ABCD')
  values = [25,45,13,78]
  fig = go.Figure(data=[go.Pie(labels=labels, values=values,
                        texttemplate=(&quot;Rank %i&quot; % 1))])
  fig.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/owHBf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/owHBf.png" alt="Example" /></a></p>