TitleStyle

Modified in version 5.0

TitleStyle ( font ;​ size ;​ style ;​ color ;​ alignment ;​ orientation ;​ textWidthMax ;​ textHeightMax ;​ ellipsisPosition ;​ shadowEffect ;​ shadowColor )

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

TitleStyle(Times New Roman;​12;​bold+underline;​blue)

TitleStyle(;​;​plain;​;​left)

Description

The TitleStyle() function is used to define the text style for the title. The attributes orientation, textWidthMax, textHeightMax and ellipsisPosition are discussed in the LabelStyle() function.

TITLE_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(26 13 6 3 1)

3

BarChart()

4

/* Set up styles. */

5

FillStyle(1;​#4682b4)

6

BorderStyle(all;​none)

7

/* Set up axes. */

8

AxisLine(all;​0)

9

AxisMajorTicks(all;​0)

10

/* Set up title. */

11

TitleText("Chart-01")

12

TitleStyle(Courier;​14;​bold;​#4682b4)

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

TITLE_STYLE_01
TITLE_STYLE_02
1

OpenDrawing(250;​150)

2

ChartData(26 13 6 3 1)

3

BarChart()

4

/* Set up styles. */

5

FillStyle(1;​#4682b4)

6

BorderStyle(all;​none)

7

/* Set up axes. */

8

AxisLine(all;​0)

9

AxisMajorTicks(all;​0)

10

/* Set up title. */

11

TitleText("A diagram with a very long title.")

12

TitleStyle(Verdana;​12;​plain;​#555;​;​;​150) /* Limit title width to 150 pixels. */

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

TITLE_STYLE_02
Scroll to Top