TitleBackground

Modified in version 4.0

TitleBackground ( fillColor ;​ fillColorVariant ;​ borderStroke ;​ borderColor ;​ borderColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
fillColor rgba 0..255 white
fillColorVariant int -1..128 solid
borderStroke num[] 0..1000 1 Dimension:[pt]
borderColor rgba 0..255 black
borderColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

TitleBackground()

TitleBackground(255 255 153)

TitleBackground(yellow;​;​2;​white;​;​3)

Description

The TitleBackground() function can be used to design the background of the title. In doing so, it is possible to vary the fill, border and shadow.

TITLE_BACKGROUND_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 1")

12

TitleBackground(white;​;​0.25;​black)

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

TITLE_BACKGROUND_01
TITLE_BACKGROUND_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(" Chart 1 ")

12

/* Light gray background with a 0.5 pixel */

13

/* wide gray border and shadow. */

14

TitleBackground(#f0f0f0;​;​0.5;​gray;​;​2 2 3)

15

/* Set up grid. */

16

MajorGridLineWidths(x;​y;​0.25)

17

MajorGridLineWidths(y;​x;​0)

18

CloseDrawing()

TITLE_BACKGROUND_02
TITLE_BACKGROUND_03
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 1")

12

TitleBackground(white;​;​2;​white;​;​2 2 3) /* Increased white background with shadow. */

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

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

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

×