PieChartInnerLabelTexts

PieChartInnerLabelTexts ( text1 ;​ text2 ;​ . . . ;​ text10000 )

Argument Type Range Default Note
text1 str 0..1000 "" Max. 1000 chars.
text2 str 0..1000 "" Max. 1000 chars.
... str 0..1000 "" Max. 1000 chars.
text10000 str 0..1000 "" Max. 1000 chars.
Examples

PieChartInnerLabelTexts("|||f1|%") /* Show percent values. */

PieChartInnerLabelTexts("|u|\n(|f1|%)") /* Show abs. & percent values. */

Description

As the default, labels are positioned outside the pie chart (appearanceConstants = label). By using the PieChartInnerLabelTexts(), PieChartInnerLabelStyle() and PieChartInnerLabelBackground() functions, it is also possible to place labels inside the chart. The setup and operation of the three functions is the same as for the "standard" LabelTexts() , LabelStyle() and LabelBackground() functions.

PIE_CHART_INNER_LABEL_TEXTS_01
1

OpenDrawing(160;​160)

2

ChartData(100 75 50 25)

3

PieChart(shadow;​;​65)

4

PieChartInnerLabelTexts("A";​"B";​"C";​"D")

5

PieChartInnerLabelStyle(Arial;​12;​bold;​white)

6

/* Set up styles. */

7

FillStyle(1;​#ffb400;​shaded)

8

FillStyle(2;​#f81a53;​shaded)

9

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

10

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

11

BorderStyle(all;​none)

12

ShadowStyle(all;​2 2 3)

13

CloseDrawing()

PIE_CHART_INNER_LABEL_TEXTS_01
PIE_CHART_INNER_LABEL_TEXTS_02
1

OpenDrawing(220;​220)

2

OpenChart(50;​50;​120;​120;​on)

3

ChartData(100 75 50 25)

4

PieChart(label+shadow)

5

PieChartInnerLabelTexts("|u|") /* Absolute values. */

6

PieChartInnerLabelStyle(Arial;​10;​plain;​#333)

7

PieChartInnerLabelBackground(#fffa;​;​0;​white)

8

/* Set up styles. */

9

FillStyle(1;​#ffb400;​shaded)

10

FillStyle(2;​#f81a53;​shaded)

11

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

12

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

13

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

14

ShadowStyle(all;​2 2 3)

15

LabelTexts(1;​"|||f1|%") /* Relative values. */

16

LabelStyle(1;​Arial;​10;​plain;​#333)

17

CloseChart()

18

CloseDrawing()

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

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

×