AxisLabelStyle

Modified in version 4.0

AxisLabelStyle ( 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

AxisLabelStyle(all;​Times New Roman;​12)

AxisLabelStyle(x;​;​;​bold;​;​;​-45)

Description

By using the AxisLabelStyle() function, it is possible to define a text style for axis labels. The attributes orientation, maxWidth, maxHeight and ellipsisPosition are discussed in combination with the LabelStyle() function.

AXIS_LABEL_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(14 27 20 7)

3

LineChart(symbol+label+shadow;​on)

4

/* Set up styles. */

5

LineStyle(1;​poly;​1;​#3879aa)

6

SymbolStyle(1;​bullet;​17;​1;​#3879aa)

7

ShadowStyle(all;​2 2 3)

8

LabelStyle(1;​Verdana;​9;​bold;​white)

9

LabelOptions(1;​centerCenter;​;​-1)

10

/* Set up axes. */

11

AxisLine(all;​0.5;​black)

12

AxisMajorTicks(all;​6;​0.5;​black;​;​out)

13

AxisLabelText(x;​"Period")

14

AxisLabelText(y;​"[mph]\n(approx.)")

15

AxisLabelStyle(all;​Courier;​12;​bold;​#638B5B)

16

AxisLabelOptions(x;​;​;​3) /* Move 3 pixels down. */

17

AxisLabelOptions(y;​;​-3) /* Move 3 pixels left. */

18

/* Set up grid. */

19

GridLocation(all;​none) /* Hide grid. */

20

CloseDrawing()

AXIS_LABEL_STYLE_01
AXIS_LABEL_STYLE_02
1

OpenDrawing(250;​150)

2

ChartData(18 29 23 35 26)

3

RadarChart(oval+symbol;​-90)

4

/* Set up styles. */

5

FillStyle(1;​#4682b418)

6

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

7

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

8

/* Set up axes. */

9

Scaling(1;​linear;​0;​40;​4)

10

AxisLine(1;​0)

11

AxisMajorTicks(1;​0)

12

AxisLabelText(1;​"GR-1";​"GR-2";​"GR-3";​"GR-4";​"GR-5")

13

AxisLabelStyle(1;​Verdana;​10;​bold+italic;​#777)

14

/* Set up grid. */

15

MajorGridLineWidths(all;​all;​0.25)

16

GridFrame(1;​0.5;​#888)

17

CloseDrawing()

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

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

×