How to make a sunburst chart with continuous color and colorscale next to the chart like the one from the Python example?

Hello.

I am trying to recreate the Sunburst of a rectangular DataFrame with continuous color argument in px.sunburst example from here: Sunburst charts in Python, but I don’t know any Python and charts in JS are written very, very differently from charts in Python.

I couldn’t find anything online, in the JS examples or in the documentation.

Any ideas ? Thank you.