Treemaps display hierarchical data as a set of nested rectangles. Each group is represented by a rectangle, which area is proportional to its value. Using color schemes, it is possible to represent several dimensions: groups, subgroups… Treemaps

have the advantage to make efficient use of space, what makes them useful to represent a big amount of data. Using python, treemaps can be made through the squarify library. This library implements the tilling algorithm that keeps each rectangle as

square as possible. Unfortunately the dataviz possibilities are quite poor what explains that this section is not heavily filled. I strongly advise to have a look to other languages like R or D3 to realize this kind of chart.

  • Sponsors

  • the Squarify library