TreeMapOptions
TreeMapOptions ( subdomainGap ; distributionFlag ; optimizeLabelTextColor )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
subdomainGap | num | 0..100 | 0.0 | Absolute in px or in % of plot area. |
distributionFlag | int | 1..4 | 1 | xmCHART 5.0.5 or higher required |
optimizeLabelTextColor | int | 0..1 | off | xmCHART 5.0.7 or higher required |
Examples
TreeMapOptions(1.5%)
Description
By using the 1st argument subdomainGap the space between data series (subdomains) can be controlled. The subdomain gap can be entered as percentage of the diagonal of the plot area or absolute in pixels. By activating the argument optimizeLabelTextColor = on the label text color is automatically adjusted to ensure good readability. For examples, please refer to function TreeMap() .
By using the 2nd argument distributionFlag the arrangement of the tree map rectangles can be controlled.
distributionFlag = 1: The biggest rectangle is located at the left top corner of the tree map (default).
distributionFlag = 2: The biggest rectangle is located at the left bottom corner of the tree map.
distributionFlag = 3: The biggest rectangle is located at the right top corner of the tree map.
distributionFlag = 4: The biggest rectangle is located at the right bottom corner of the tree map.
| TREE_MAP_OPTIONS_01 |
1 | OpenDrawing(220;130) |
2 | ChartData(10 1 13 5 12 3 9 18 15 14 4 20 19 17 11 6 16 7 8 2) |
3 | |
4 | TreeMapOptions(;1) /* 1...Biggest rectangle is located at the left top corner (default). */ |
5 | |
6 | BorderStyle(all;;0.25) |
7 | ShadowStyle(all;0 0 2;black) |
8 |
| TREE_MAP_OPTIONS_02 |
1 | OpenDrawing(220;130) |
2 | ChartData(10 1 13 5 12 3 9 18 15 14 4 20 19 17 11 6 16 7 8 2) |
3 | |
4 | TreeMapOptions(;2) /* 2...Biggest rectangle is located at the left bottom corner. */ |
5 | |
6 | BorderStyle(all;;0.25) |
7 | ShadowStyle(all;0 0 2;black) |
8 |
| TREE_MAP_OPTIONS_03 |
1 | OpenDrawing(220;130) |
2 | ChartData(10 1 13 5 12 3 9 18 15 14 4 20 19 17 11 6 16 7 8 2) |
3 | |
4 | TreeMapOptions(;3) /* 3...Biggest rectangle is located at the right top corner. */ |
5 | |
6 | BorderStyle(all;;0.25) |
7 | ShadowStyle(all;0 0 2;black) |
8 |
| TREE_MAP_OPTIONS_04 |
1 | OpenDrawing(220;130) |
2 | ChartData(10 1 13 5 12 3 9 18 15 14 4 20 19 17 11 6 16 7 8 2) |
3 | |
4 | TreeMapOptions(;4) /* 4...Biggest rectangle is located at the right bottom corner. */ |
5 | |
6 | BorderStyle(all;;0.25) |
7 | ShadowStyle(all;0 0 2;black) |
8 |