Sunburst Chart display info

Hello,

I was wondering if there is a way to display the Sunburst chart data in text.

E.g

If you click on Parent “shapes” which has children like “circle, rectangle, square, etc.”
Then it would display like:
Shapes

  • Circle
  • Rectangle
  • Square
  • etc.

I’ve tried looking at other graphs for displaying data but I can’t seem to find one or get my head around doing it in a Sunburst Chart.

Thanks,
Dominick

Hi @domgomez, you can add customdata to the sunburst chart (if you build a list of strings to display, one for each id) and define a hovertemplate or a texttemplate to display the customdata. For the use of customdata, this Python example might also help.

Hi Emmanuelle thanks for looking into this.

I would like the data to be displayed outside the chart, perhaps in a table beside it or something.

So the idea is that the table of data will change in parallel when you select something in the Sunburst chart.