The tree map control provides a simple and effective way to visualize flat or hierarchical data as clustered rectangles with a specific, weighted attribute determining the size of each rectangle. This control has highly customizable features such as displaying hierarchical and flat-level data, legends, different layouts, and color mapping.
The levels of tree map can be categorized into two types such as TreeMapFlatLevel and TreeMapHierarchicalLevel to visualize data.
It visualizes the levels for flat data collection. The items source set to tree map must be flat data collection.
It visualizes the levels for hierarchical data collection, which contains tree-structured data. The items source set to tree map must be hierarchical data collection.
The tree map contains group of data collection; each group has one or more leaf nodes. Each leaf node is displayed as a rectangle, sized, and colored according to values that you assign.
Leaf node border can be customized to enhance the readability.
Gap between the group of leaf nodes can be customized to enhance the readability.
The tree map control provides template support for tree map nodes, which allow any type of custom template to be created with any type of view element.
The color mapping supports categorizing the nodes by customizing their colors based on the underlying value.
Colors can be applied to nodes by comparing their values with desired numeric range. For example, colors can be applied to the countries based on their population growth.
Colors can be applied to nodes by comparing their values with desaturation color order. For example, transparent color can be applied to the countries based on their population variation from higher to lower.
Single color can be applied to entire nodes.
Each node can be colored with each color specified in palate color mapping.
The tree map provides different types of layout options to view the child nodes in effective ways.
The data is visualized in this layout in the form of square-like rectangles with best aspect ratio.
The data is visualized in this layout in the form of long-thin rectangles, which can be displayed either vertically or horizontally, with high aspect ratio.
This layout creates rectangles with high aspect ratio and displays them horizontally.
This layout creates rectangles with high aspect ratio and displays them sorted vertically.
The legend is used to add additional information for interpreting a tree map with various colors, shapes, or other identifiers based on data and application needs.
The type of legend icon can be changed to built-in shapes such as circle, rectangle, or custom shapes to indicate the node color.
The position of a legend can be changed or moved to any place inside the tree map.