PieChartLabelOptions

PieChartLabelOptions ( useRelativeLimits ;​ outerLabelOffset ;​ innerLabelOffset )

Argument Type Range Default Note
useRelativeLimits int 0..1 off
outerLabelOffset num -100..100 0 In % of pie radius
innerLabelOffset num -100..100 0 In % of pie radius
Examples
Description

The 1st argument useRelativeLimits makes it possible to define relative limits instead of absolute limits. Chart values, which do not lie within these limits, are not labeled. The limits, i.e. the lower and upper limit, are defined in the LabelOptions() function. By using the arguments outerLabelOffset and innerLabelOffset, the space between the border and the outer and inner labels can be controlled. xmCHART 4.0.8 comes with an additional flag for the 3rd argument innerLabelOffset: By attaching 1 to innerLabelOffset the offset is the distance between the border of the pie chart and the center of the inner label texts, in opposite to the distance between the border of the pie chart and the outer edge of the inner label texts (default).

PIE_CHART_LABEL_OPTIONS_01
1

OpenDrawing(280;​280)

2

OpenChart(20;​20;​240;​240;​on)

3

ChartData(100 80 40 30 10)

4

PieChart(shadow;​3;​50)

5

/* Set up styles. */

6

FillColorScheme(9)

7

PieChartLabelOptions(;​;​25 1)

8

PieChartInnerLabelTexts("Project 1\n[|u|]";​

9

"Project 2\n[|u|]";​

10

"Project 3\n[|u|]";​

11

"Project 4\n[|u|]";​

12

"Project 5\n[|u|]")

13

PieChartInnerLabelStyle(Verdana;​9;​bold;​white;​center)

14

BorderStyle(all;​none)

15

ShadowStyle(all;​2 2 3)

16

CloseChart()

17

CloseDrawing()

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

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

×