PieChartCenterLabelBackgroundOptions

New in version 5.0

PieChartCenterLabelBackgroundOptions ( cornerRadius ;​ padding )

Argument Type Range Default Note
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
Description

The first argument cornerRadius can have up to four corner radii (topLeft, topRight, bottomRight and bottomLeft). As the second 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. For example:


OpenDrawing(800;​600)

/* ... */

/* Chart legend. */

LegendTitle("Legend")

LegendTexts("Item 1";​"Item 2";​"Item 3")

LegendStyle(Verdana;​10;​plain)

LegendOptions(bottomCenter)

LegendBackgroundOptions(10;​10) /* No effect, function LegendBackground() is missed. */

/* ... */

CloseDrawing()


OpenDrawing(800;​600)

/* ... */

/* Chart legend. */

LegendTitle("Legend")

LegendTexts("Item 1";​"Item 2";​"Item 3")

LegendStyle(Verdana;​10;​plain)

LegendOptions(bottomCenter)

LegendBackground(#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

LegendBackgroundOptions(10;​10) /* Correct, function LegendBackground() is called. */

/* ... */

CloseDrawing()

Scroll to Top