AxisLabelText
Argument | Type | Range | Default | Note |
---|---|---|---|---|
axisIndex | int | 0..10000 | all | |
text1 | styt | 0..1000 | "" | Max. 1000 chars. |
text2 | styt | 0..1000 | "" | Max. 1000 chars. |
... | styt | 0..1000 | "" | Max. 1000 chars. |
text10000 | styt | 0..1000 | "" | Max. 1000 chars. |
Examples
AxisLabelText(y;"Revenues")
AxisLabelText(x;"A";"B";"C") /* Labels for radar chart axes. */
Description
By using the AxisLabelText() function, axes can be given a label. Texts consisting of several lines are possible by inserting a line feed "\n". If the text contains a format specifier, e.g. "|u|", the axis index is displayed, i.e. "1" for the x-axis, "2" for the y-axis. The handling of texts in connection with format specifiers is discussed in combination with the LabelTexts() function.
| AXIS_LABEL_TEXT_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(16 18 25 17 13 8) |
3 | |
4 | /* Set up styles. */ |
5 | FillStyle(1;#4682b418) |
6 | BorderStyle(1;poly;1;#4682b4) |
7 | /* Set up axes. */ |
8 | |
9 | AxisMajorTicks(all;0) /* Hide tick marks. */ |
10 | AxisMajorTickLabelTexts(y;"") /* Hide y-scaling labels. */ |
11 | AxisLabelText(x;"Axis-|u|") |
12 | AxisLabelText(y;"Frequency\n(Axis-|u|)") |
13 | AxisLabelStyle(x;Verdana;10;bold;#555) |
14 | AxisLabelStyle(y;Verdana;10;bold;#555;;-90) |
15 | AxisLabelOptions(y;;-5) /* Move 5 pixels left. */ |
16 | /* Set up grid. */ |
17 | GridLocation(all;none) /* Hide grid. */ |
18 |
| AXIS_LABEL_TEXT_02 |
1 | OpenDrawing(250;150) |
2 | ChartData(16 18 25 17 13 8) |
3 | |
4 | /* Set up styles. */ |
5 | FillStyle(1;#4682b418) |
6 | BorderStyle(1;poly;1;#4682b4) |
7 | /* Set up axes. */ |
8 | |
9 | AxisMajorTicks(all;0) /* Hide tick marks. */ |
10 | AxisMajorTickLabelTexts(all;"") /* Hide scaling labels. */ |
11 | AxisLabelText(x;"Frequency distribution") |
12 | AxisLabelText(y;"Fre-\nquen-\ncy") |
13 | AxisLabelStyle(all;Verdana;10;bold;#555) |
14 | AxisLabelOptions(x;;;5) /* Move 5 pixels down. */ |
15 | AxisLabelOptions(y;;-5) /* Move 5 pixels left. */ |
16 | /* Set up grid. */ |
17 | GridLocation(all;none) /* Hide grid. */ |
18 |
For polar and radar charts multiple texts can be entered which are appropriately assigned to the individual axes. If the number of texts entered is less than the number of axes, then the texts will be repeated periodically. If a text contains a format specifier, then the angle will be written in degrees on polar charts and the axis index on radar charts. Please note that on polar and radar charts axisIndex = 1 or axisIndex = x is to be set, all other axis indices are ignored.
| AXIS_LABEL_TEXT_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(5 7 3 -5 -7 -2 -3; /* x-values. */ |
3 | 6 3 -6 -4 2 3 6) /* y-values. */ |
4 | |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b418) |
7 | BorderStyle(1;poly;1;#4682b4) |
8 | SymbolStyle(1;circle;4.5;1;#4682b4;;white) |
9 | /* Set up axes. */ |
10 | AxisLine(1;0) /* Hide axis lines. */ |
11 | AxisMajorTicks(1;0) /* Hide tick marks. */ |
12 | AxisMajorTickLabelTexts(1;"") /* Hide scaling labels. */ |
13 | AxisLabelText(all;"|u|˚") |
14 | /* Set up grid. */ |
15 | MajorGridLineWidths(all;all;0.25) |
16 | GridFrame(1;0.5;#888) |
17 |
| AXIS_LABEL_TEXT_04 |
1 | OpenDrawing(250;150) |
2 | ChartData(24 35 15 34 17) |
3 | |
4 | RadarChartOptions(-1) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;none) |
8 | SymbolStyle(1;circle;5;1.5;#4682b4;;lime) |
9 | /* Set up axes. */ |
10 | |
11 | AxisLine(1;0.25;#555) |
12 | AxisMajorTicks(1;6;0.25;#555) |
13 | AxisMajorTickLabelTexts(1;"") |
14 | AxisLabelText(1;"(A-|u|)") |
15 | /* Set up grid. */ |
16 | GridLocation(all;none) /* Hide grid. */ |
17 |
For further information, e.g. styled texts, hyphenation, please refer to Texts.