AxisMajorTickLabelTexts
Argument | Type | Range | Default | Note |
---|---|---|---|---|
axisIndex | int | 0..10000 | all | |
text1 | styt | 0..1000 | "|u|" | Max. 1000 chars. |
text2 | styt | 0..1000 | "|u|" | Max. 1000 chars. |
... | styt | 0..1000 | "|u|" | Max. 1000 chars. |
text10000 | styt | 0..1000 | "|u|" | Max. 1000 chars. |
Examples
AxisMajorTickLabelTexts(x;"Q1";"Q2";"Q3";"Q4")
Description
As the default, the scaling texts are the respective scaling values. By using the AxisMajorTickLabelTexts() function, the label text of the major tick marks can be controlled. Thus, it is possible to assign an individual text to each tick mark. The texts are repeated periodically if the number of major tick marks is larger than the number of texts entered. If the text contains a format specifier, e.g. "|f1|", the scaling value is accordingly formatted. The handling of texts in connection with format specifiers is discussed in combination with the LabelTexts() function. Texts consisting of several lines are possible by entering a line feed "\n".
| AXIS_MAJOR_TICK_LABEL_TEXTS_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(23 19 10 15 12 5 2; |
3 | 18 12 19 24 17 15 6) |
4 | |
5 | /* Set up styles. */ |
6 | |
7 | |
8 | SymbolStyle(1;circle;5;1;#3879aa;;white) |
9 | SymbolStyle(2;circle;5;1;#c002a0;;white) |
10 | ShadowStyle(all;2 2 3) |
11 | /* Set up axes. */ |
12 | |
13 | AxisMajorTicks(all;0) |
14 | AxisMajorTickLabelTexts(y;"$|u|") |
15 | AxisMajorTickLabelTexts(x;"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat") |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(all;all;0.25) |
18 |
| AXIS_MAJOR_TICK_LABEL_TEXTS_02 |
1 | OpenDrawing(250;150) |
2 | ChartData(8 -2 -4 1 -5 7 2 -8) |
3 | BarChart() |
4 | BarChartOptions(;;on) /* After BarChart() */ |
5 | /* Set up styles. */ |
6 | BorderStyle(all;;0.5;#638b5b) |
7 | FillStyle(1;#638b5baa) |
8 | |
9 | /* Set up axes. */ |
10 | |
11 | |
12 | AxisMajorTicks(all;0) |
13 | AxisMajorTickLabelTexts(y;"Neg.";"0";"Pos.") |
14 | AxisMajorTickLabelTexts(x;"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug") |
15 | /* Set up grid. */ |
16 | MajorGridLineWidths(x;y;0.25) |
17 | MajorGridLineWidths(y;x;0) |
18 |
For further information, e.g. styled texts, hyphenation, please refer to Texts.