LabelBackgroundOptions
New in version 5.0
LabelBackgroundOptions ( seriesIndex ; cornerRadius ; padding )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | -1..10000 | all | |
cornerRadius | num[] | 0..1000 | 0 | Absolute in px or in % of drawing diagonal |
padding | num[] | 0..1000 | 2% | Absolute in px or in % of drawing diagonal |
Examples
LabelBackgroundOptions(all;6)
LabelBackgroundOptions(1;8 0;10)
LabelBackgroundOptions(2;2% 0 2% 0;5 10)
Description
The second argument cornerRadius can have up to four corner radii (topLeft, topRight, bottomRight and bottomLeft). As the third argument padding, it is possible to define the padding for each side of an element (top, right, bottom and left). Refer to the mnemonic “TRouBLe" as an easy way to remember the order of paddings. The cornerRadius and padding can be entered absolute in pixels or relative as percentage of the diagonal of the drawing area.
Please note, background option functions are only enabled in combination with the corresponding background function.
| LABEL_BACKGROUND_OPTIONS_01 |
1 | OpenDrawing(260;230) |
2 | |
3 | ChartData(100 91 15.2 90 53.2 89.97) |
4 | |
5 | PieChartAuxLines(20;;center;0.25;#555) /* After PieChart() */ |
6 | /* Set up styles. */ |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | ShadowStyle(all;2 2 3) |
16 | LabelTexts(;"|f1|\n(|f1|%)") |
17 | LabelStyle(;Verdana;8;plain;black;center) |
18 | LabelBackground(1;#fafbfe;;1;#fafbfe;;0.5 0.5 2) |
19 | LabelBackgroundOptions(all;4 0;3 5 5 5) |
20 | |
21 |