You could actually use a tree map. You can use the AnyChart widget, which you can find in the app store: https://appstore.home.mendix.com/link/app/106517/
This allows you to manually configure any type of chart supported by the plotly library. Here you can find the guide on how to implement a tree map with plotly: https://plot.ly/javascript/treemaps/