TreeMap

New in version 4.0

TreeMap ( appearanceConst )

Argument Type Range Default Note
appearanceConst int 0..127 default
Examples
Description

The 1st argument appearance makes it possible to add shadow (appearanceConstants = shadow) and labels (appearanceConstants = label) to the map. Appearance options can be combined by using a plus sign "+".

TREE_MAP_01
1

OpenDrawing(300;​150)

2

ChartData(10 1 13 5 12 3 9 18 15 14 4 20 19 17 11 6 16 7 8 2)

3

TreeMap(label)

4

/* Set up styles. */

5

FillStyle(all;​none)

6

BorderStyle(all;​;​0.25;​black)

7

CloseDrawing()

TREE_MAP_01
TREE_MAP_02
1

OpenDrawing(400;​160)

2

ChartData(15 16 2 16 15 5 3 11 2 2;​

3

20 19 1 1 7)

4

TreeMap(label)

5

TreeMapOptions(1.5%) /* After TreeMap() */

6

/* Set up styles. */

7

FillColorScheme(3;​shaded)

8

BorderStyle(all;​;​0.5;​0 0 0 30)

9

LabelStyle(1;​Verdana;​10;​plain;​#fff)

10

LabelStyle(2;​Verdana;​10;​plain;​#333)

11

CloseDrawing()

TREE_MAP_02
TREE_MAP_03
1

OpenDrawing(450;​240)

2

ChartData(10 4 5 2;​

3

6 16 7 8 2;​

4

5)

5

TreeMap(label)

6

TreeMapOptions(1.25%) /* After TreeMap() */

7

/* Set up styles. */

8

BorderStyle(all;​;​1.0;​0 0 0 80)

9

FillColorScheme(2;​shaded)

10

LabelBackground(0;​255 255 255 100;​shaded;​0)

11

LabelOptions(all;​bottomRight;​-1;​-1)

12

CloseDrawing()

TREE_MAP_03
TREE_MAP_04
1

/* Tree map with color scale. */

2

OpenDrawing(450;​350)

3

ChartData(10 10 10 10 10 10 10 10 10 13 13 13 12 11 10 9 8 8 7 7 7 8 8 9 10 11 12 13 13 16 16 15 13 12 10 8 7 5 4 4 4 5 7 8 10 12 13 15 16 18 18 17 15 13 10 8 5 3 2 2 2 3 5 8 10 13 15 17 18 20 19 18 16 13 10 7 4 2 1 0 1 2 4 7 10 13 16 18 19 20 20 18 16 13 10 7 4 2 0 6 14 0 2 4 7 10 13 16 18 20 20 19 18 16 13 10 7;​

4

4 2 1 0 1 2 4 7 10 13 16 18 19 18 18 17 15 13 10 8 5 3 2 2 2 3 5 8 10 13 15 17 18 16 16 15 13 12 10;​

5

8 7 5 4 4 4 5 7 8 10 12 13 15 16 13 13 13 12 11 10 9 8 8 7 7 7 8 8 9 10 11 12 13 13 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 7 7 8 8 9 10 11 12 13 13 13 13 13 12 11 10 9 8 8 7 4 4 5 7 8 10 12 13 15 16 16 16 15 13 12 10 8 7 5 4 2 2 3 5 8 10 13 15 17 18 18 18 17 15 13 10 8 5 3 2 0 1 2 4 7 10 1 3 16 18 19 20 19 18 16 13 10 7 4 2 1 0 0 2 4 7 10 13 16 18 20 20 20 18 16 13 10 7 4 2 0 0 1 2 4 7 10 13 16 18 19 20 19 18 16 13 10 7 4 2 1 2 2 3 5 8 10 13 15 17 18 18 18 17 15 13 10 8 5 3 2 4 4 5 7 8 10 12 13 15 16 16 16 15 13 12 10 8 7 5 4 7 7 8 8 9 10 11 12 13 13 13 13 13 12 11 10 9 8 8 7)

6

TreeMap()

7

TreeMapOptions(1%) /* After TreeMap() */

8

/* Set up styles. */

9

FillColorScale(1;​11;​shaded)

10

FillColorScale(2;​4;​shaded)

11

FillColorScale(3;​12;​shaded;​;​4) /* 4 color tones. */

12

BorderStyle(all;​none)

13

CloseDrawing()

TREE_MAP_04
TREE_MAP_05
1

OpenDrawing(360;​230)

2

OpenChart(100;​20;​200;​50;​on)

3

ChartData(14 8 1 10 1 12 17 11 5 3 16 12 8 11 9 8 5 7 19 3 17 6 2 18 13 15 1 19 10 1 13 20 10 15 9 20 2 17 20 20)

4

TreeMap()

5

FillColorScale(1;​15)

6

BorderStyle(1;​;​1;​#666)

7

CloseChart()

8

OpenChart(100;​90;​130;​50;​on)

9

ChartData(1 12 10 12 5 1 5 11 7 11 13 5 2 6 13 6 15 3 6 11 4 6 2 13 3 1 1 4 4 19 3 1 13 7 9 8 3 4 5 14)

10

TreeMap()

11

FillColorScale(1;​15)

12

BorderStyle(1;​;​1;​#666)

13

CloseChart()

14

OpenChart(100;​160;​110;​50;​on)

15

ChartData(7 9 2 11 1 6 2 4 7 3 1 1 8 5 6 5 6 13 2 19 11 7 6 3 1 3 5 10 3 4 7 15 14 5 12 2 4 4 1 1)

16

TreeMap()

17

FillColorScale(1;​15)

18

BorderStyle(1;​;​1;​#666)

19

CloseChart()

20

AddText(10;​ 45;​"Distribution A";​Arial;​14;​plain;​#444;​left;​center)

21

AddText(10;​115;​"Distribution B";​Arial;​14;​plain;​#444;​left;​center)

22

AddText(10;​185;​"Distribution C";​Arial;​14;​plain;​#444;​left;​center)

23

AddText(310;​ 45;​"428";​Arial;​20;​plain;​#444;​left;​center)

24

AddText(240;​115;​"279";​Arial;​20;​plain;​#444;​left;​center)

25

AddText(220;​185;​"236";​Arial;​20;​plain;​#444;​left;​center)

26

CloseDrawing()

TREE_MAP_05

For more examples, please refer to Color Scales.

Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×