ChartBackground

ChartBackground ( planeIndex ;​ fillColor ;​ fillColorVariant ;​ borderStroke ;​ borderColor ;​ borderColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
planeIndex int 0..3 all
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
Description

The ChartBackground() function is set up exactly the same way as the Background() function except for the 1st argument planeIndex. Unlike the Background() function, the background area for the ChartBackground() function is limited to the plot area of a chart. As the 1st argument planeIndex, the constants xy or all are to be entered for 2-dimensional charts. In addition, for 3-dimensional charts the plane constants xz and yz are available. The z-axis points in the direction of the viewer.

CHART_BACKGROUND_01
1

OpenDrawing(250;​150)

2

ChartData(7 5 4 2 1)

3

BarChart(shadow)

4

/* Set up styles. */

5

FillStyle(1;​#4682b4)

6

BorderStyle(all;​none)

7

ShadowStyle(all;​2 2 5)

8

/* Set up axes. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid and background. */

12

MajorGridLineWidths(y;​x;​0)

13

MajorGridLineColors(x;​y;​#e1d9c9)

14

ChartBackground(xy;​#f7f6f1;​solid;​0)

15

CloseDrawing()

CHART_BACKGROUND_01
CHART_BACKGROUND_02
1

OpenDrawing(250;​150)

2

ChartData(7 5 4 2 1)

3

BarChart(shadow)

4

/* Set up styles. */

5

FillStyle(1;​#4682b4)

6

BorderStyle(all;​none)

7

ShadowStyle(all;​2 2 5)

8

/* Set up axes. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid and backgrounds. */

12

MajorGridLineWidths(y;​x;​0)

13

MajorGridLineColors(x;​y;​#e1d9c9)

14

ChartBackground(xy;​#fdfcf7;​solid;​1;​#e1d9c9)

15

Background(#f7f6f1;​solid;​1;​#e1d2b6)

16

CloseDrawing()

CHART_BACKGROUND_02
CHART_BACKGROUND_03
1

OpenDrawing(250;​150)

2

OpenChart(18;​8;​210;​140)

3

ChartData(7 5 4 2 1)

4

BarChart(shadow)

5

/* Set up styles. */

6

FillStyle(1;​#4682b4)

7

BorderStyle(all;​none)

8

ShadowStyle(all;​2 2 5)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid and background. */

13

MajorGridLineWidths(y;​x;​0)

14

MajorGridLineColors(x;​y;​#e1d9c9)

15

ChartBackground(xy;​#fdfcf7;​solid;​0;​none;​solid;​2 2 4;​0 0 0 50)

16

CloseChart()

17

Background(#f7f6f1;​solid;​0.5;​#a58b5c)

18

CloseDrawing()

CHART_BACKGROUND_03
CHART_BACKGROUND_04
1

OpenDrawing(250;​150)

2

OpenView(25;​20;​200;​110)

3

ChartData(9 6 4 2 1)

4

BarChart(shadow)

5

/* Set up styles. */

6

FillStyle(1;​#4682b4)

7

BorderStyle(all;​none)

8

ShadowStyle(all;​2 2 5)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid and backgrounds. */

13

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

14

MajorGridLineWidths(x;​y;​0.25)

15

ChartBackground(xy;​#eef1f5;​;​1;​#8ca7ce) /* Plot area background. */

16

Background(white;​;​1;​lightGray) /* View background. */

17

CloseView()

18

Background(#f7f6f1;​solid;​3.5;​#e1d2b6)

19

CloseDrawing()

CHART_BACKGROUND_04
CHART_BACKGROUND_05
1

OpenDrawing(250;​150)

2

OpenChart(15;​15;​210;​125)

3

ChartData(8 2 7 6 7 9 4)

4

RadarChart(oval)

5

RadarChartOptions(0) /* After RadarChart() */

6

/* Set up styles. */

7

FillStyle(1;​#4682b420)

8

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

9

/* Set up axes. */

10

Scaling(;​linear;​0;​10;​5)

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

/* Set up grid and background. */

14

MajorGridLineWidths(all;​all;​0.25)

15

ChartBackground(xy;​2 0.5 0.5 0.0 255 255 255 255 1.0 181 226 167 255;​;​1;​#8ca7ce)

16

CloseChart()

17

Background(#f7f6f1;​solid;​1;​#e1d2b6)

18

CloseDrawing()

CHART_BACKGROUND_05
Scroll to Top