LabelBackgroundOptions

New in version 5.0

LabelBackgroundOptions ( seriesIndex ;​ roundings ;​ paddings )

Argument Type Range Default Note
seriesIndex int -1..10000 all
roundings num[] 0..1000 0 Absolute in px or in % of drawing diagonal
paddings 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 roundings can have up to four corner roundings (topLeft, topRight, bottomRight and bottomLeft). As the third argument paddings, 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 roundings and paddings 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

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

3

ChartData(100 91 15.2 90 53.2 89.97)

4

PieChart(label+shadow;​;​60)

5

PieChartAuxLines(20;​;​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;​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

CloseChart()

21

CloseDrawing()

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

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

×