PieChartExplodeDepths

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

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

PieChartExplodeDepths(15;​2)

PieChartExplodeDepths(20;​max)

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

Description

By using the function PieChartExplodeDepths(), segments of a 3D pie chart can be moved upwards vertically. For 2D pie charts the function PieChartExplodeDepths() is ignored. The 1st argument explodeOffset defines the size of the offset value which should be entered in percent of the segment height. If no offset value is defined, the segments are offset by 20% of the segment height (explodeOffset =​ 20). The other arguments in PieChartExplodeDepths() define which segments should be offset.

PIE_CHART_EXPLODE_DEPTHS_01
1

OpenDrawing(280;​150)

2

ChartData(18 13 9 8 4)

3

PieChart(label+oval;​8;​;​-180)

4

PieChartExplodeDepths(60;​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

CloseDrawing()

PIE_CHART_EXPLODE_DEPTHS_01

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