plotly_sunburstclick event, it works well.
When used multiple times I would like to reinitialize the sunburst so it is displayed from the root, like the first time.
I have tried to use
newPlot but without success, the plot is always displayed from the previous position.
Thanks for your help
Ok I have a solution using
redraw and setting the level to ‘’ which means root according to the documentation:
data.level = '';
Plotly.redraw(plotDiv, data, layout);