Black Lives Matter. Please consider donating to Black Girls Code today.

Is there a way to plot a 2D graph in 3D space?

Hello guys!
So I’m trying to plot my 2D sunburst graph in 3D space.
I would like to have multiple layers in vertical and have each layers display a sunburst graph.
I’ve been researching on this topic for a while but I couldn’t find any solution.
If anyone could help me out, it’d be great!
Thanks!

Hello @yechoe hum I’m not sure I would recommend this :-). Sunburst graphs are often quite busy, and 3D can make it more complicated to read them. A solution with subplots would not work for you? (see https://plot.ly/python/sunburst-charts/#sunburst-chart-with-a-continuous-colorscale).

Anyway, there is no direct way to do what you want (see for example https://github.com/plotly/plotly.py/issues/1019 about pie charts, a sunburst chart can be seen as a complex pie chart). You can define your own visualizations using the Mesh3d trace (https://plot.ly/python/3d-mesh/, see also amazing examples by @empet such as https://plot.ly/python/3d-mesh/) but it will be very manual…