AxisLabelBackground

Modified in version 4.0

AxisLabelBackground ( axisIndex ;​ fillColor ;​ fillColorVariant ;​ borderStroke ;​ borderColor ;​ borderColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
axisIndex int 0..10000 all
fillColor rgba 0..255 white
fillColorVariant int -1..128 solid
borderStroke num[] 0..1000 1 Dimension:[pt]
borderColor rgba 0..255 black
borderColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0 Dimension:[pt]
shadowColor rgba 0..255 #888a
Examples

AxisLabelBackground(all;​none)

AxisLabelBackground(x;​yellow;​;​0;​;​;​2)

Description

By using the AxisLabelBackground() function, the background of the axis label can be designed. In doing so, it is possible to vary the fill, border and shadow.

AXIS_LABEL_BACKGROUND_01
1

OpenDrawing(250;​150)

2

ChartData(1 9 0 9 5 5 7 8)

3

Histogram()

4

HistogramOptions(on) /* After Histogram() */

5

/* Set up styles. */

6

FillStyle(1;​#4682b420)

7

BorderStyle(1;​poly;​1;​#4682b4)

8

/* Set up axes. */

9

ScalingOptions(y;​;​on) /* Integers only. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

AxisLabelText(x;​" Frequency distribution ")

13

AxisLabelBackground(x;​#4682b410;​;​0.5;​#4682b4)

14

AxisLabelOptions(x;​;​;​5)

15

/* Set up grid. */

16

MajorGridLineWidths(x;​y;​0.25)

17

MajorGridLineWidths(y;​x;​0)

18

CloseDrawing()

AXIS_LABEL_BACKGROUND_01
AXIS_LABEL_BACKGROUND_02
1

OpenDrawing(250;​150)

2

ChartData(23 29 45 35 21)

3

RadarChart(oval+symbol;​-90)

4

RadarChartOptions(4) /* After RadarChart() */

5

/* Set up styles. */

6

FillStyle(1;​none)

7

BorderStyle(1;​poly;​1.5;​#4682b4)

8

SymbolStyle(1;​circle;​5;​1;​#4682b4;​;​white)

9

/* Set up axes. */

10

Scaling(1;​linear;​0;​50;​5)

11

AxisLine(1;​0)

12

AxisMajorTicks(1;​0)

13

AxisLabelText(1;​"A1";​"A2";​"B";​"C1";​"C2")

14

AxisLabelBackground(1;​white;​;​1;​white;​;​2 2 3)

15

/* Set up grid. */

16

MajorGridLineWidths(all;​all;​0.25)

17

GridFrame(1;​0.5;​#888)

18

CloseDrawing()

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

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

×