title: Plotly Pie Chart and label order
body: <p>How to change the order of the labels in the Pie Chart (plotly)?</p>
  
  <p>I want to force this order: <code>20 16 15</code></p>
  
  <p>And not  <code>16 15 20</code></p>
  
  <hr>
  
  <p>My csv file:</p>
  
  <pre><code>id,A,B,C
  1,15,16,45
  2,20,15,54
  3,16,18,60
  4,16,15,54
  5,15,12,68
  6,16,20,68
  </code></pre>
  
  <p>My python code</p>
  
  <pre><code>import pandas
  import plotly.graph_objects as go
  
  col_label = "A"
  col_values = "Count"
  
  data = pandas.read_csv(mycsvfile)
  v = data[col_label].value_counts()
  new = pandas.DataFrame({
      col_label: v.index,
      col_values: v.values
  })
  fig = go.Figure(
      data=[go.Pie(
          labels=new[col_label],
          values=new[col_values])
      ])
  fig.show()
  </code></pre>
  
  <p>Gives this graph:
  <a href="https://i.stack.imgur.com/aup1u.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aup1u.png" alt="graph"></a></p>