Multi-Level X-Axis in Charts

Hello all,

I’m working on a data visualization project requiring 3-5 levels on the x-axis of a chart. My attempts and examples I’ve seen so far only support 2 levels. I’ve seen similar complexity in Excel pivot charts and believe it’s achievable.

Can anyone guide me on how to extend this beyond 2 levels/categories? Any tips, code examples, or pointers to relevant libraries/plugins would be greatly appreciated.

Thank you in advance!