ErrorBarStyle2D
ErrorBarStyle2D ( seriesIndex ; shapeType ; fillColor ; fillColorVariant ; borderStroke ; borderColor ; borderColorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | 0..10000 | all | |
shapeType | int | 0..2 | oval | |
fillColor | rgba | 0..255 | gray | |
fillColorVariant | int | -1..128 | transparent | |
borderStroke | num[] | 0..1000 | 1 | Dimension:[pt] |
borderColor | rgba | 0..255 | black | |
borderColorVariant | int | -1..128 | solid |
Examples
ErrorBarStyle2D(1;;red;gray;0)
ErrorBarStyle2D(all;oval;;;2;green)
Description
By using the ErrorBarStyle2D() function, the error values on two-dimensional charts can also be represented by ellipses or rectangles. The argument shapeType makes it possible to choose between elliptical error areas (shapeType = oval) or rectangular error areas (shapeType = rect). If the form is not defined, ellipses are drawn as the default to represent the errors. The area can be varied by using the arguments fillColor and fillColorVariant, the border by using the arguments borderStroke, borderColor and borderColorVariant. As the default, the ellipses are drawn with a one-pixel wide, black border and are not filled.
| ERROR_BAR_STYLE_2D_01 |
1 | OpenDrawing(200;200) |
2 | ChartData( 7 11 20 26; /* x-values. */ |
3 | 10 23 9 19) /* y-values. */ |
4 | |
5 | |
6 | ErrorBarStyle(1;all;on;0) |
7 | ErrorBarStyle2D(1;oval;#0003;black;0.25) |
8 | /* Set up styles. */ |
9 | SymbolStyle(1;bullet;3;1;black;shaded) |
10 | /* Set up axes. */ |
11 | |
12 | |
13 | AxisMajorTicks(all;0) |
14 | /* Set up grid. */ |
15 | MajorGridLineWidths(all;all;0.25) |
16 | |
17 |
| ERROR_BAR_STYLE_2D_02 |
1 | OpenDrawing(200;200) |
2 | ChartData( 4 11 15 20 26; /* x-values. */ |
3 | 21 15 4 14 20) /* y-values. */ |
4 | |
5 | |
6 | |
7 | ErrorBarStyle(1;all;on;0) |
8 | ErrorBarStyle2D(1;oval;#0000000d;solid;0.25) |
9 | /* Set up styles. */ |
10 | |
11 | SymbolStyle(1;circle;5;1;#4682b4;;white) |
12 | /* Set up axes. */ |
13 | |
14 | |
15 | AxisMajorTicks(all;0) |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(all;all;0.25) |
18 | |
19 |
| ERROR_BAR_STYLE_2D_03 |
1 | OpenDrawing(200;200) |
2 | ChartData( 4 10 26 20; /* x-values. */ |
3 | 21 4 25 10) /* y-values. */ |
4 | |
5 | |
6 | ErrorBarData(1;2 1 3 5; /* Positive x-errors */ |
7 | 2 2 0 5; /* Negative x-errors */ |
8 | 2 1 3 5; /* Positive y-errors */ |
9 | 2 2 3 5) /* Negative y-errors */ |
10 | ErrorBarStyle2D(1;rect;#4682b420;black;0) |
11 | /* Set up styles. */ |
12 | SymbolStyle(1;circle;5;1;black;;white) |
13 | /* Set up axes. */ |
14 | |
15 | |
16 | AxisMajorTicks(all;0) |
17 | /* Set up grid. */ |
18 | MajorGridLineWidths(all;all;0.25) |
19 | |
20 |