Differences between revisions 4 and 5
 ⇤ ← Revision 4 as of 2007-07-06 04:46:07 → Size: 1673 Editor: OlegKobchenko Comment: Algorithms link ← Revision 5 as of 2008-12-08 10:45:29 → ⇥ Size: 1652 Editor: anonymous Comment: converted to 1.6 markup Deletions are marked like this. Additions are marked like this. Line 1: Line 1: || inline:treemap.png|| || {{attachment:treemap.png}}|| Line 5: Line 5: The squarified algorithm is used, see [http://en.wikipedia.org/wiki/Treemap Wikipedia]. The squarified algorithm is used, see [[WikiPedia:Treemap|Wikipedia]]. Line 13: Line 13: * [:Treemap/Verb:Verb] - the treemap verb * [[Treemap/Verb|Verb]] - the treemap verb Line 17: Line 17: * [:Treemap/Options:Options] - treemap options * [:Treemap/Events:Events] - event handling for treemap * [:Treemap/Class:Class] - main treemap class * [:Treemap/Algorithms:Algorithms] - calculating the layout * [[Treemap/Options|Options]] - treemap options * [[Treemap/Events|Events]] - event handling for treemap * [[Treemap/Class|Class]] - main treemap class * [[Treemap/Algorithms|Algorithms]] - calculating the layout Line 35: Line 35: [http://en.wikipedia.org/wiki/Treemap Wikipedia] [[WikiPedia:Treemap|Wikipedia]]

A treemap paints a list of data as rectangles in the graphics window, where each rectangle has area proportional to its value. Rectangles at top left are the largest, and at bottom right, the smallest. Such a display makes it obvious which are the largest items and their relative sizes.

The squarified algorithm is used, see Wikipedia.

Colors can indicate other attributes, e.g. if the data has both negative and positive values, then red/green could indicate sign. When data is all positive or all negative, then color could indicate parent. A hotkey might toggle through different color schemes.

Moving the mouse over a rectangle can display information for that cell.

Treemap Verb - the treemap verb can be used to display simple treemaps from the J ijx window, see:

• Verb - the treemap verb

Documentation  -  for using treemap in an application

### Example

`load '~addons/graphics/treemap/demo.ijs'`