ShadowStyle
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
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 | |
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 | |
12 | AxisMajorTicks(all;0) |
13 | /* Set up grid. */ |
14 | MajorGridLineWidths(x;y;0.25) |
15 | MajorGridLineWidths(y;x;0) |
16 |
| SHADOW_STYLE_02 |
1 | OpenDrawing(250;100) |
2 | ChartData(0 0;1 1;2 2) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | |
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 | |
13 | AxisMajorTicks(all;0) |
14 | AxisMajorTickLabelTexts(x;"") |
15 | /* Set up grid. */ |
16 | |
17 |
| SHADOW_STYLE_03 |
1 | OpenDrawing(200;200) |
2 | ChartData(18 13 11 9 8 4) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | ShadowStyle(all;2 2 5;gray) |
13 | /* Set up axes. */ |
14 | |
15 | AxisMajorTicks(all;0) |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(x;y;0.25) |
18 | MajorGridLineWidths(y;x;0) |
19 |