AxisLabelBackgroundOptions
New in version 5.0
AxisLabelBackgroundOptions ( axisIndex ; cornerRadius ; padding )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
axisIndex | int | 0..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
AxisLabelBackgroundOptions(all;6)
AxisLabelBackgroundOptions(x;8 0;10)
AxisLabelBackgroundOptions(y;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. For example:
OpenDrawing(800;600)
/* ... */
/* Chart legend. */
LegendTitle("Legend")
LegendTexts("Item 1";"Item 2";"Item 3")
LegendStyle(Verdana;10;plain)
LegendBackgroundOptions(10;10) /* No effect, function LegendBackground() is missed. */
/* ... */
OpenDrawing(800;600)
/* ... */
/* Chart legend. */
LegendTitle("Legend")
LegendTexts("Item 1";"Item 2";"Item 3")
LegendStyle(Verdana;10;plain)
LegendBackground(#f3f6f2;0;0;;;2 2 2;lightGray)
LegendBackgroundOptions(10;10) /* Correct, function LegendBackground() is called. */
/* ... */