thinkmap.layout.grid.GridLayout

extends:
Jump To: Members

A layout that arranges nodes in a grid where the x and y axis values can be determined by function(s) of the data.

Examples:

Create a grid layout and use it to layout a grid that compares cost to revenue. var display = new thinkmap.display.Display(document.getElementById('mydiv')); thinkmap.layout.gridLayout(display) .scaleX( thinkmap.scale.linear() ) .valueX( function(e) { return e.data.cost; } ) .scaleY( thinkmap.scale.linear() ) .valueY( function(e) { return e.data.revenue; } ); display.layout();

Instance Methods

Defined in thinkmap.layout.grid.GridLayout: