PieChartAuxLines

PieChartAuxLines ( horizontalLength ;​ extensionLength ;​ vAlignment ;​ stroke ;​ color ;​ colorVariant )

Argument Type Range Default Note
horizontalLength num 0..1000 10 In % of pie radius
extensionLength num 0..1000 0 Not implemented
vAlignment int 1..3 center
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 gray
colorVariant int -1..128 solid
Examples

PieChartAuxLines(10;​;​bottom)

PieChartAuxLines(;​;​bottom;​;​black)

Description

The PieChartAuxLines() function can be used to better position the outside labels.

PIE_CHART_AUX_LINES_01
1

OpenDrawing(200;​200)

2

OpenChart(40;​40;​120;​120;​on)

3

ChartData(4 13 9 18 11 8)

4

PieChart(label)

5

PieChartAuxLines() /* After PieChart() */

6

/* Set up styles. */

7

FillStyle(1;​#00bed7;​shaded)

8

FillStyle(2;​#ffb400;​shaded)

9

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

10

FillStyle(4;​#063e9e;​shaded)

11

FillStyle(5;​#f81a53;​shaded)

12

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

13

BorderStyle(all;​;​2;​white)

14

ShadowStyle(all;​2 2 3)

15

CloseChart()

16

CloseDrawing()

PIE_CHART_AUX_LINES_01

The length of the auxiliary lines can be controlled by the argument horizontalLength. It is to be entered in percent of the segment length. The argument extensionLength is currently not used and is ignored. By using the argument vAlignment, the position of the auxiliary line can be defined relative to the label. When vAlignment = bottom, the auxiliary line is positioned below the label, when vAlignment = top above the label, when vAlignment = center in the center (default). The stroke and color can be varied by using the arguments stroke, color and colorVariant.

PIE_CHART_AUX_LINES_02
1

OpenDrawing(200;​200)

2

OpenChart(40;​40;​120;​120;​on)

3

ChartData(18 12 12 12 9 8 2)

4

PieChart(label)

5

PieChartAuxLines(10;​;​bottom;​0.25;​gray) /* After PieChart() */

6

/* Set up styles. */

7

FillColorScheme(1;​shaded)

8

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

9

LabelTexts(;​"|||f1|%")

10

CloseChart()

11

CloseDrawing()

PIE_CHART_AUX_LINES_02
PIE_CHART_AUX_LINES_03
1

OpenDrawing(240;​240)

2

OpenChart(70;​70;​100;​100;​on)

3

ChartData(94 65 23 10 5)

4

PieChart(label+shadow;​

5

6;​ /* Pie depth.  */

6

60) /* Inner radius. */

7

PieChartAuxLines(10;​;​bottom;​0.25;​gray) /* After PieChart() */

8

/* Set up styles. */

9

FillColorScheme(blue)

10

BorderStyle(all;​;​0.0;​white)

11

ShadowStyle(all;​2 2 3;​lightGray)

12

LabelTexts(;​"|u| (|f1|%)")

13

CloseChart()

14

CloseDrawing()

PIE_CHART_AUX_LINES_03
PIE_CHART_AUX_LINES_04
1

OpenDrawing(230;​230)

2

OpenChart(55;​55;​120;​120;​on)

3

ChartData(100 91 15.2 90 53.2 89.97)

4

PieChart(label+shadow)

5

PieChartAuxLines(10;​;​center;​0.25;​#555) /* After PieChart() */

6

/* Set up styles. */

7

FillStyle(1;​#00bed7;​shaded)

8

FillStyle(2;​#ffb400;​shaded)

9

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

10

FillStyle(4;​#063e9e;​shaded)

11

FillStyle(5;​#f81a53;​shaded)

12

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

13

FillStyle(7;​#37cebf;​shaded)

14

BorderStyle(all;​none)

15

ShadowStyle(all;​2 2 3)

16

LabelTexts(;​"|f1|\n(|f1|%)")

17

LabelStyle(;​Verdana;​9;​plain;​black;​center)

18

LabelBackground(1;​#fafbfe;​;​1;​#fafbfe;​;​2 2 3)

19

CloseChart()

20

CloseDrawing()

PIE_CHART_AUX_LINES_04

The formatted output of the absolute and/or relative values is explained in detail together with examples in Numbers.

Scroll to Top