TitleSubStyle

Modified in version 5.0

TitleSubStyle ( 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 plain
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

TitleSubStyle(Times New Roman;​10)

TitleSubStyle(;​;​;​gray)

Description

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

TITLE_SUB_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("Diagram-01";​"\"Series A\"")

12

TitleStyle(Verdana;​12;​bold;​#555)

13

TitleSubStyle(Courier;​11;​italic;​darkGray)

14

TitleOptions(;​;​;​;​6) /* Increase gap between title and subtitle. */

15

/* Set up grid. */

16

MajorGridLineWidths(x;​y;​0.25)

17

MajorGridLineWidths(y;​x;​0)

18

CloseDrawing()

TITLE_SUB_STYLE_01
Scroll to Top