Treemap

Hi to all, 

anyone have some ideas for Treemap in GH. 

I want to used for visualisation of space program data, constant part of competitions.

Data are in percentage or areas m2. 

"Treemap. A treemap is a visual representation of hierarchies using nested rectangles. The first version was introduced by Ben Shneiderman in 1990 in the context of visualization of directories structures. In our representation the size of the rectangle for each file systems is proportional with the number of external symbols used by it. The symbols exported by vmlinux are also depicted. The thicker lines indicate the boundaries of the seven categories we introduced earlier."

 

  • up

    Sean Franklin

    have you ever figured this out?

    1
    • up

      Thomas Holth

      Hi!

      Try this definition. It contains a python node with code to make a type of treemap. Most of the code is however not by me, but by Uri Laserson: https://github.com/laserson/squarify. I only adapted it to Grasshopper. Plug in a rectangle and a list of numbers to create a treemap. If you want something similar to the map in the original forum post you can just chain two treemap nodes. The first one to create the primary rectangles and the second one to fill each primary rectangle with secondary rectangles.

      Thomas Holth

      1
      • up

        Geoarchitects

        Thomas, thank you so much!