PieChartExplodes

PieChartExplodes ( explodeOffset ;​ sliceIndex1 ;​ sliceIndex2 ;​ . . . ;​ sliceIndex10000 )

Argument Type Range Default Note
explodeOffset num 0..100 20 In % of pie radius
sliceIndex1 int -3..1000 none
sliceIndex2 int -3..1000 none
... int -3..1000 none
sliceIndex10000 int -3..1000 none
Examples

PieChartExplodes(15;​all)

PieChartExplodes(20;​max)

PieChartExplodes(20;​2;​4;​6;​8)

Description

By using the PieChartExplodes() function, segments of a pie chart can be offset (exploding). The 1st argument explodeOffset defines the size of the offset value which should be entered in percent of the segment length. If no offset value is defined, the segments are offset by 20% of the segment length (explodeOffset =​ 20). The other arguments in PieChartExplodes() define which segments should be offset.

PIE_CHART_EXPLODES_01
1

OpenDrawing(280;​150)

2

ChartData(18 13 9 8 4)

3

PieChart(oval+shadow;​;​;​10)

4

PieChartExplodes(15;​2) /* After PieChart() */

5

/* Set up styles. */

6

FillStyle(1;​#ffb400;​shaded)

7

FillStyle(2;​#f81a53;​shaded)

8

FillStyle(3;​#0073dd;​shaded)

9

FillStyle(4;​#00a79d;​shaded)

10

FillStyle(5;​#222222;​shaded)

11

BorderStyle(all;​none)

12

ShadowStyle(all;​2 2 3)

13

CloseDrawing()

PIE_CHART_EXPLODES_01

In addition, four segment constants are also available.

PIE_CHART_EXPLODES_02
1

OpenDrawing(160;​160)

2

ChartData(72 72 72 72 72)

3

PieChart(shadow)

4

PieChartExplodes(10;​all) /* After PieChart() */

5

/* Set up styles. */

6

FillStyle(1;​#ffb400;​shaded)

7

FillStyle(2;​#f81a53;​shaded)

8

FillStyle(3;​#0073dd;​shaded)

9

FillStyle(4;​#00a79d;​shaded)

10

FillStyle(5;​#222222;​shaded)

11

BorderStyle(all;​none)

12

ShadowStyle(all;​2 2 3)

13

CloseDrawing()

PIE_CHART_EXPLODES_02
PIE_CHART_EXPLODES_03
1

OpenDrawing(160;​160)

2

ChartData(18 13 8 4 2)

3

PieChart(shadow;​;​;​-30)

4

PieChartExplodes(15;​min) /* After PieChart() */

5

/* Set up styles. */

6

FillStyle(1;​#ffb400;​shaded)

7

FillStyle(2;​#f81a53;​shaded)

8

FillStyle(3;​#0073dd;​shaded)

9

FillStyle(4;​#00a79d;​shaded)

10

FillStyle(5;​#222222;​shaded)

11

BorderStyle(all;​;​1.5;​white)

12

ShadowStyle(all;​2 2 3)

13

CloseDrawing()

PIE_CHART_EXPLODES_03

The functions PieChartExplodes() and PieChartExplodeDepths() can be entered several times and combined as well. Therefore, it is possible to move segments outwards radially and/or upwards vertically, just as you wish. Please note that the functions PieChartExplodes() and PieChartExplodeDepths() should be listed after the PieChart() function. This rule generally applies: chart options should always be listed after the actual chart function.

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

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

×