ShadowStyle

Modified in version 4.0

ShadowStyle ( seriesIndex ;​ effect ;​ color )

Argument Type Range Default Note
seriesIndex int 0..10000 all
effect num[] -1000..1000 3 3 3
color rgba 0..255 #888a
Examples

ShadowStyle(all;​;​lightGray)

ShadowStyle(all;​2 2 5)

ShadowStyle(1;​0 0 10;​blue)

Description

The shadows for chart symbols, lines, borders and fills can be varied by using the ShadowStyle() function. The default shadow for charts is gray with an offset and blur radius of three pixels. For more details, refer to Glow & Shadow.

SHADOW_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(30 35 30;​ /* 1st series. */

3

20 25 20;​ /* 2nd series. */

4

10 15 10) /* 3rd series. */

5

BarChart(shadow)

6

/* Set up styles. */

7

FillColorScheme(blue)

8

BorderStyle(all;​;​1;​#666)

9

ShadowStyle(all;​2 2 3;​200 200 200)

10

/* Set up axes. */

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(x;​y;​0.25)

15

MajorGridLineWidths(y;​x;​0)

16

CloseDrawing()

SHADOW_STYLE_01
SHADOW_STYLE_02
1

OpenDrawing(250;​100)

2

ChartData(0 0;​1 1;​2 2)

3

LineChart(shadow)

4

/* Set up styles. */

5

LineStyle(1;​;​1;​red)

6

LineStyle(2;​;​1;​blue)

7

LineStyle(3;​;​1.5;​yellow)

8

ShadowStyle(1;​0 0 2;​lightRed)

9

ShadowStyle(2;​0 0 3;​lightBlue)

10

ShadowStyle(3;​0 0 4;​darkGreen)

11

/* Set up axes. */

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

AxisMajorTickLabelTexts(x;​"")

15

/* Set up grid. */

16

GridLocation(xy;​none)

17

CloseDrawing()

SHADOW_STYLE_02
SHADOW_STYLE_03
1

OpenDrawing(200;​200)

2

ChartData(18 13 11 9 8 4)

3

PieChart(label+shadow;​6;​50)

4

/* Set up styles. */

5

FillStyle(1;​#063e9e;​shaded)

6

FillStyle(2;​#ffb400;​shaded)

7

FillStyle(3;​#f81a53;​shaded)

8

FillStyle(4;​#0073dd;​shaded)

9

FillStyle(5;​#00a79d;​shaded)

10

FillStyle(6;​#00bed7;​shaded)

11

BorderStyle(all;​none)

12

ShadowStyle(all;​2 2 5;​gray)

13

/* Set up axes. */

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

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

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

×