Grasshopper

algorithmic modeling for Rhino

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."

 

Views: 1941

Replies to This Discussion

have you ever figured this out?

No, but I suppose  now it could be easily done with the Kangaroo and packing algorithm...

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

Attachments:

Thanks Thomas, looks great. 

Igor

Thomas, thank you so much!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service