title: Plotly: How to create sunburst subplot using graph_objects?
body: <p>my dataframe looks something like this:</p>
  <pre><code>    user    age   gender
  0    23     12     male
  1    24     13     male
  2    25     15     female
  3    26     20     male
  4    27     21     male
  </code></pre>
  <p>and using</p>
  <pre><code>px.sunburst(df, path=[&quot;gender&quot;, &quot;age&quot;])
  </code></pre>
  <p>gives me correct sunburst plot where gender is in middle part of pie chart and for each gender it has associated ages.</p>
  <p>I want to do this using graph_objects instead of plotly express since I want two sunburst plots to be side by side.</p>
  <p>from df I have above how can I use it in graph_objects. I do not understand what values to add to lables, parents, ids, etc...</p>
  <pre><code>fig = go.Figure()
  
  fig.add_trace(
      go.Sunburst(
          lables = df.age,
          parents = df.gender,
          domain=dict(column=0)
      )
  )
  
  fig.show()
  </code></pre>
  <p>I've read the documentation however I cannot understand how it works. If someone knows, please tell me how I can create sunburst plot using graph_object with df I have above.</p>