Skip to main content
A newer version of this page is available. .

TreeMapSquarifiedLayoutAlgorithm Class

A class representing the Squarified layout algorithm.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v18.1.dll

Declaration

public class TreeMapSquarifiedLayoutAlgorithm :
    TreeMapLayoutAlgorithmBase

Remarks

The idea of the algorithm is to layout the rectangles along the required direction in the available display area as long as the highest width/height ratio of any rectangle in the current row keeps improving. Once the highest aspect ratio among the rectangles has reached a minimum, and adding another rectangle to the current row would increase the worst aspect ratio, the current row is fixed and a new row is created.

The following image demonstrates the tree map layout calculated using this algorithm.

SquarifiedLayoutAlgorithm

For more information about Layout Algorithms, refer to the Layout Algorithms topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TreeMapSquarifiedLayoutAlgorithm class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
TreeMapElement
TreeMapLayoutAlgorithmBase
TreeMapSquarifiedLayoutAlgorithm
See Also