SymbolStyle
Modified in version 5.0
SymbolStyle ( seriesIndex ; type ; size ; stroke ; color ; colorVariant ; backgroundColor ; backgroundColorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | 0..10000 | all | |
type | int | 0..126 | (see desc.) | |
size | num | 0..1000 | 9 | Dimension:[pt] |
stroke | num[] | 0..1000 | 1 | Dimension:[pt] |
color | rgba | 0..255 | (see desc.) | |
colorVariant | int | -1..128 | solid | |
backgroundColor | rgba | 0..255 | none | |
backgroundColorVariant | int | -1..128 | solid |
Examples
SymbolStyle(all;bullet;5)
SymbolStyle(2;none)
Description
By using the SymbolStyle() function, each data series can be assigned a separate symbol. Series, which are not explicitly assigned a symbol, are represented in one of the 12 default symbols (argument type between 1 and 12). Presently, a total of 126 symbols are available. An overview of the predefined symbols can be found in Symbols. Series, which are not explicitly assigned a symbol color, are represented in one of the 16 default colors, i.e. SymbolColorScheme(classic).
| SYMBOL_STYLE_01 |
1 | OpenDrawing(250;150) |
2 | ChartData( 0 5 0; |
3 | 10 15 10; |
4 | 20 25 20; |
5 | 30 35 30) |
6 | |
7 | /* Set up styles. */ |
8 | SymbolStyle(1;squareHalfLeftBottom;10;1;#005ca9) |
9 | SymbolStyle(2;diamond;10;1;#9cccf0) |
10 | SymbolStyle(3;circleHalfLeft;10;1;#00afef) |
11 | SymbolStyle(4;star5;9;1.5;#0f3284) |
12 | ShadowStyle(all;2 2 4) |
13 | /* Set up axes. */ |
14 | |
15 | AxisMajorTicks(all;0) |
16 | AxisMajorTickLabelTexts(x;"") |
17 | /* Set up grid. */ |
18 | MajorGridLineWidths(x;y;0.25) |
19 | MajorGridLineWidths(y;x;0) |
20 |
| SYMBOL_STYLE_02 |
1 | OpenDrawing(250;150) |
2 | ChartData( 0 5 0; |
3 | 10 15 10; |
4 | 20 25 20; |
5 | 30 35 30) |
6 | |
7 | /* Set up styles. */ |
8 | |
9 | |
10 | |
11 | |
12 | SymbolStyle(1;circle;6;2;white;;#005ca9) |
13 | SymbolStyle(2;bullet;8;1.5;#9cccf0;shaded;white) |
14 | SymbolStyle(3;diamondOutline;8;1.5;#00afef;;white) |
15 | SymbolStyle(4;squareOutline;8;1.5;#0f3284;-1;white) |
16 | /* Set up axes. */ |
17 | |
18 | AxisMajorTicks(all;0) |
19 | AxisMajorTickLabelTexts(x;"") |
20 | /* Set up grid. */ |
21 | MajorGridLineWidths(x;y;0.25) |
22 | MajorGridLineWidths(y;x;0) |
23 |
| SYMBOL_STYLE_03 |
1 | OpenDrawing(250;150) |
2 | ChartData( 1 2.5 null 3 3.5 3 null 2 1 2 3) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | SymbolStyle(1;circle;5.5;1.5;steelBlue;;white) |
7 | ShadowStyle(all;2 2 4) |
8 | /* Set up axes. */ |
9 | |
10 | AxisMajorTicks(all;0) |
11 | AxisMajorTickLabelTexts(x;"") |
12 | /* Set up grid. */ |
13 | MajorGridLineWidths(x;y;0.25) |
14 | MajorGridLineWidths(y;x;0) |
15 |
| SYMBOL_STYLE_04 |
1 | OpenDrawing(160;160) |
2 | ChartData(33 32 16 29 18) |
3 | |
4 | RadarChartOptions(0) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;none) |
8 | SymbolStyle(1;bullet;16;1;steelBlue;shaded) |
9 | ShadowStyle(1;2 2 3) |
10 | LabelStyle(1;Arial;10;bold;white) |
11 | LabelOptions(1;centerCenter;;-1) |
12 | /* Set up axes. */ |
13 | |
14 | |
15 | AxisMajorTicks(all;0) |
16 | AxisLabelText(1;"A";"B";"C";"D";"E") |
17 | /* Set up grid. */ |
18 | MajorGridLineWidths(2;1;0) |
19 | MajorGridLineWidths(1;2;0.5) |
20 | MajorGridLineColors(1;2;steelBlue) |
21 |
As an option, characters from a character set can also be used as symbols. The characters are defined by the LabelTexts() und LabelStyle() functions. The LabelOptions() function makes it possible to position the characters precisely.
| SYMBOL_STYLE_05 |
1 | OpenDrawing(250;150) |
2 | ChartData(25 2 20 7 17 27; /* 1st series: x-values. */ |
3 | 15 3 10 14 7 8; /* 1st series: y-values. */ |
4 | 23 10 15 12 6; /* 2nd series: x-values. */ |
5 | 3 10 15 5 4) /* 2nd series: y-values. */ |
6 | |
7 | /* Set up styles. */ |
8 | SymbolStyle(all;none) |
9 | |
10 | LabelTexts(1;"AB") |
11 | LabelStyle(1;Arial;10;plain;crimson) |
12 | LabelTexts(2;"ⓐ") |
13 | LabelStyle(2;Verdana;14;bold;steelBlue) |
14 | /* Set up axes. */ |
15 | |
16 | |
17 | |
18 | AxisMajorTicks(all;0) |
19 | AxisMajorTickLabelTexts(x;"";"|u|";"|u|";"|u|";"|u|";"|u|") |
20 | AxisMajorTickLabelTexts(y;"";"|u|";"|u|") |
21 | /* Set up grid. */ |
22 | MajorGridLineWidths(x;y;0;0.25;0.25) |
23 | MajorGridLineWidths(y;x;0;0.25;0.25;0.25;0.25;0.25) |
24 | |
25 |
Symbols can also be displayed when using a bubble chart. By using the PictureStyle() function it is possible to read in pictures from a file or stream and use them as symbols. For more details, refer to Import Images.
OpenDrawing(200;120)
ChartData(3 1 6 8; 1 1 1 1;
8 4 2 4; 1 1 1 1;
6 9 8 2; 1 1 1 1)
BubbleChart(;on)
BorderStyle(all;0)
AxisMajorTicks(x;0)
GridLocation(;none)
PictureStyle(1;file;"~/symbols/symbol_01.png")
PictureStyle(2;file;"~/symbols/symbol_02.png")
PictureStyle(3;file;"~/symbols/symbol_03.png")