This is a very simple Dash app, allowing users to select levels of the treemap, as well as which metric to count by:
This example uses a typical Google Analytics report:
Here is the GH repo, or you can try it out on Google Colab
Feel free to make changes and/or suggestions.
Thanks!