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
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 | |
4 | PieChartExplodes(15;2) /* After PieChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | ShadowStyle(all;2 2 3) |
13 |
In addition, four segment constants are also available.
| PIE_CHART_EXPLODES_02 |
1 | OpenDrawing(160;160) |
2 | ChartData(72 72 72 72 72) |
3 | |
4 | PieChartExplodes(10;all) /* After PieChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | ShadowStyle(all;2 2 3) |
13 |
| PIE_CHART_EXPLODES_03 |
1 | OpenDrawing(160;160) |
2 | ChartData(18 13 8 4 2) |
3 | |
4 | PieChartExplodes(15;min) /* After PieChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | BorderStyle(all;;1.5;white) |
12 | ShadowStyle(all;2 2 3) |
13 |
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.