Class TreeMapLayout

GoJS® Diagramming Components
version 3.0.8
by Northwoods Software®

This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.


A custom go.Layout that lays out hierarchical data using nested rectangles.

If you want to experiment with this extension, try the TreeMap Layout sample.




  • Gets or sets whether top level Parts are laid out horizontally.


  • Compute the for each node in the Diagram, with a go.Group's being a sum of its members.


    Returns void