BubbleChartOptions

BubbleChartOptions ( maxDiameter ;​ bubbleType ;​ useSymbolsAsBubbles )

Argument Type Range Default Note
maxDiameter num 0..1000 30 Dimension:[pt]
bubbleType int 1..2 areaProp
useSymbolsAsBubbles int 0..1 off xmCHART 4.0.5 or higher required
Description

By using the 1st argument maxDiameter, the maximum bubble diameter can be controlled. If no value is defined, the maximum default bubble diameter equals 30 pixels. In addition, the proportion of the bubbles to each other can be controlled, i.e. when bubbleType = areaProp, the area of the bubbles are in proportion to each other; when bubbleType = diameterProp, the diameters are in proportion. The default is bubbleType = areaProp. By activating the 3rd argument useSymbolsAsBubbles = on symbols defined by using function SymbolStyle() are used as bubbles.

BUBBLE_CHART_OPTIONS_01
1

OpenDrawing(250;​150)

2

ChartData(17 13 19 7;​ /* 1st series: y-values.  */

3

4 6 8 9;​ /* 1st series: diameters. */

4

7 3 8 17 10 15;​ /* 2nd series: y-values.  */

5

5 6 9 12 6 11) /* 2nd series: diameters. */

6

BubbleChart(label;​on)

7

BubbleChartOptions(50;​diameterProp) /* After BubbleChart()) */

8

/* Set up styles. */

9

FillStyle(1;​none)

10

FillStyle(2;​steelBlue;​shaded)

11

BorderStyle(1;​;​1.5;​teal)

12

BorderStyle(2;​none)

13

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

14

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

15

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

16

/* Set up axes. */

17

AxisLine(all;​0)

18

AxisMajorTicks(all;​0)

19

/* Set up grid. */

20

MajorGridLineWidths(all;​all;​0.25)

21

CloseDrawing()

BUBBLE_CHART_OPTIONS_01
BUBBLE_CHART_OPTIONS_02
1

OpenDrawing(250;​150)

2

ChartData(17 13 19 7 null 5;​ /* 1st series: y-values.  */

3

4 6 8 9 null 8;​ /* 1st series: diameters. */

4

7 3 8 17 10 15;​ /* 2nd series: y-values.  */

5

5 6 9 12 6 11) /* 2nd series: diameters. */

6

BubbleChart(;​on)

7

BubbleChartOptions(20;​2;​on) /* After BubbleChart() */

8

/* Set up styles. */

9

SymbolStyle(1;​circleHalfTopRight;​;​1;​crimson)

10

SymbolStyle(2;​circleHalfTopLeft;​;​1;​steelBlue)

11

BorderStyle(1;​;​1.5;​teal)

12

BorderStyle(2;​none)

13

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

14

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

15

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

16

/* Set up axes. */

17

AxisLine(all;​0)

18

AxisMajorTicks(all;​0)

19

/* Set up grid. */

20

MajorGridLineWidths(all;​all;​0.25)

21

CloseDrawing()

BUBBLE_CHART_OPTIONS_02

Please note that the BubbleChartOptions() function should be listed after the BubbleChart() or BubbleChart2D() function.

Scroll to Top