AxisMajorTickLabelStyle

Modified in version 4.0

AxisMajorTickLabelStyle ( axisIndex ;​ font ;​ size ;​ style ;​ color ;​ alignment ;​ orientation ;​ maxWidth ;​ maxHeight ;​ ellipsisPosition ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
axisIndex int 0..10000 all
font str 0..1000 ApplFont
size num 0..1000 9 Dimension:[pt]
style int 0..7 plain
color rgba 0..255 black
alignment int 1..3 center
orientation num -360..+360 0 Dimension:[deg]
maxWidth num -1..10000 -1 Dimension:[pt]
maxHeight num -1..10000 -1 Dimension:[pt]
ellipsisPosition int 0..4 3
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AxisMajorTickLabelStyle(x;​Times New Roman;​12)

AxisMajorTickLabelStyle(all;​;​;​bold)

Description

The text style of the scaling labels can be varied by using the AxisMajorTickLabelStyle() function. The attributes orientation, maxWidth, maxHeight and ellipsisPosition are discussed in combination with the LabelStyle() function.

AXIS_MAJOR_TICK_LABEL_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData( 9000000 0 0 0;​

3

0 13000000 0 0;​

4

0 0 18000000 0;​

5

0 0 0 20000000)

6

BarChart(stacked)

7

/* Set up styles. */

8

BorderStyle(all;​;​0.5;​#638b5b)

9

FillStyle(1;​#638b5baa)

10

FillStyle(2;​#a9cea2aa)

11

FillStyle(3;​#e1f4deaa)

12

FillStyle(4;​none)

13

/* Set up axes. */

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

AxisMajorTickLabelTexts(x;​"A-1";​"A-2";​"A-3";​"A-4")

17

AxisMajorTickLabelTexts(y;​"|-6u| Mio")

18

AxisMajorTickLabelStyle(all;​Courier;​11;​bold;​#638b5b)

19

/* Set up grid. */

20

MajorGridLineColors(x;​y;​#638b5b)

21

MajorGridLineWidths(x;​y;​0.25)

22

MajorGridLineWidths(y;​x;​0)

23

CloseDrawing()

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

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

×