TitleText

TitleText ( title ;​ subTitle )

Argument Type Range Default Note
title styt 0..1000 "" Max. 1000 chars.
subTitle styt 0..1000 "" Max. 1000 chars.
Examples

TitleText("Turnover")

TitleText("Turnover";​"Department A")

TitleText("Turnover\nDepartment A")

Description

A total of five functions are available to set up the title. They make it possible to:

  • define a title text incl. subtitle
  • use separate text styles for the title and subtitle
  • design the background
  • position the title in a flexible manner

The TitleText() function is used to define the text for the title; it is also possible to define a subtitle as the 2nd argument. Texts consisting of several lines can also be entered by inserting a line feed "\n".

TITLE_TEXT_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\nSeries A")

12

/* Set up grid. */

13

MajorGridLineWidths(x;​y;​0.25)

14

MajorGridLineWidths(y;​x;​0)

15

CloseDrawing()

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

12

/* Set up grid. */

13

MajorGridLineWidths(x;​y;​0.25)

14

MajorGridLineWidths(y;​x;​0)

15

CloseDrawing()

TITLE_TEXT_02

For further information, e.g. styled texts, hyphenation, please refer to Texts.

Scroll to Top