BubbleChart2D

BubbleChart2D ( appearanceConst )

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

The BubbleChart2D() function makes it possible to draw two-dimensional bubble charts. The 1st data series in the ChartData() function defines the x-values, the 2nd data series the y-values and the 3rd data series the diameters of the first series, the 4th and 5th data series in ChartData() the x and y-values of the second series, the 6th data series the diameters of the second series, etc.

BUBBLE_CHART_2D_01
1

OpenDrawing(250;​150)

2

ChartData(17 13 19 9 3 3;​ /* x-values. */

3

4 6 8 16 17 5;​ /* y-values. */

4

7 3 8 17 10 15) /* Diameters. */

5

BubbleChart2D()

6

/* Set up styles. */

7

FillStyle(1;​#4682b420)

8

BorderStyle(1;​;​0.75;​#4682b4)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(all;​all;​0.25)

14

CloseDrawing()

BUBBLE_CHART_2D_01

As for one-dimensional bubble charts, symbols (appearanceConstants = symbol), shadow (appearanceConstants = shadow) and labels (appearanceConstants = label) can be added to the bubbles by using the argument appearanceConstants. The options can be combined by using a plus sign "+". Rotating (appearanceConstants = horizontal) is not supported for two-dimensional charts as this is simply possible by switching the data series in ChartData() .

BUBBLE_CHART_2D_02
1

OpenDrawing(250;​150)

2

ChartData(17 14 20 9 6 16;​ /* 1st series: x-values. */

3

4 7 8 16 18 19;​ /* 1st series: y-values. */

4

7 5 8 17 20 25;​ /* 1st series: diameters. */

5

10 3 9 19;​ /* 2nd series: x-values. */

6

4 6 8 16;​ /* 2nd series: y-values. */

7

7 6 8 20) /* 2nd series: diameters */

8

BubbleChart2D(label)

9

BubbleChartOptions(35;​areaProp) /* After BubbleChart2D() */

10

/* Set up styles. */

11

FillStyle(1;​2 0.8 0.8 0.1 223 176 173 190 0.7 161 42 37 190)

12

FillStyle(2;​none)

13

BorderStyle(1;​none)

14

BorderStyle(2;​;​1.5;​161 42 37 190)

15

LabelStyle(1;​Verdana;​9;​bold;​white)

16

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

17

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

18

/* Set up axes. */

19

AxisLine(all;​0)

20

AxisMajorTicks(all;​0)

21

/* Set up grid. */

22

MajorGridLineWidths(all;​all;​0.25)

23

CloseDrawing()

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

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

×