A pie chart could serve a similar purpose, but can be much easier to interpret. I like this interactive pie chart for profiling Webpack bundle size. I've used it several times at work to help find and reduce bloat in our bundles.
"[Pie] charts are bad and that the only thing worse than one pie chart is lots of them"
-Edward Tufte
https://scc.ms.unimelb.edu.au/resources/data-visualisation-a...https://www.businessinsider.com/pie-charts-are-the-worst-201...
https://www.data-to-viz.com/caveat/pie.html
etc etc
The chart I'm talking about has multiple names, but is not a simple pie chart. Thanks to funcDropShadow for pointing this out. The names: sunburst chart, multilevel pie chart, and radial treemap.
https://www.anychart.com/chartopedia/chart-type/sunburst-cha...