From J Wiki
Jump to: navigation, search
Treemap | Options | Events | Class

The code that paints the treemap is in class ptreemap..

Load the treemap by loading the class, for example:

load 'graphics/treemap'

A treemap is drawn in an isigraph control on a J form. The verb that creates the form should also create an instance of the treemap class, and set values in the instance to define the treemap.

Most events for the isigraph control should be passed to the grid instance for execution, see Events.

The verb show shows the treemap, or refreshes the treemap if it is already displayed. The argument specifies treemap options, as a 2-column boxed matrix of names and corresponding values.

Options are listed in Options. Option names are always uppercase in treemap, and are converted if necessary.