DropLineStyle
DropLineStyle ( seriesIndex ; dropLineAxisIndex ; stroke ; color ; colorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | 0..10000 | all | |
dropLineAxisIndex | int | 0..3 | all | |
stroke | num[] | 0..1000 | 1 | Dimension:[pt] |
color | rgba | 0..255 | gray | |
colorVariant | int | -1..128 | solid |
Examples
DropLineStyle(1;all;1;blue;gray)
Description
As an option, drop lines can be added to scatter, bubble, line, bar and area charts. A total of 4 functions are available for this. They serve to:
- design the drop lines
- define a reference point
- define a reference line
- define a set of reference series
For all 4 functions DropLineStyle(), DropLineReferencePoint() , DropLineReferenceLine() and DropLineReferenceSeries() the series index is defined as the 1st argument. If no series index is defined or if seriesIndex = all is set, the respective function refers to all data series. The 2nd argument dropLineAxisIndex defines the direction of the drop lines. When dropLineAxisIndex = x, the drop lines refer to the x-axis; when dropLineAxisIndex = y, they refer to the y-axis. If no axis index is defined or if dropLineAxisIndex = all, drop lines are drawn in the direction of both the x-axis and y-axis. The stroke and color of the drop lines can be varied using the arguments stroke, color and colorVariant. Unless otherwise defined, drop lines are gray, 1-pixel wide lines.
| DROP_LINE_STYLE_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(15 19 13 17 12 3) |
3 | |
4 | DropLineStyle(all;all;0.25;#555) |
5 | /* Set up styles. */ |
6 | |
7 | SymbolStyle(1;circle;5;1.25;steelBlue;;white) |
8 | /* Set up axes. */ |
9 | |
10 | AxisMajorTicks(x;0) |
11 | AxisMajorTicks(y;6;0.5;black;;out) |
12 | AxisOptions(all;front) /* Axes in front of drop lines. */ |
13 | /* Set up grid. */ |
14 | GridLocation(all;none) /* Hide grid. */ |
15 |
| DROP_LINE_STYLE_02 |
1 | OpenDrawing(250;150) |
2 | ChartData( 7 5 18 20 24; /* 1st series: x-values. */ |
3 | 2 18 16 9 13; /* 1st series: y-values. */ |
4 | 23 10 15 12 4; /* 2nd series: x-values. */ |
5 | 3 10 14 5 4) /* 2nd series: y-values. */ |
6 | |
7 | DropLineStyle(1;all;0.25;#4682b4) |
8 | DropLineStyle(2;all;0.25;#c002a0) |
9 | /* Set up styles. */ |
10 | SymbolStyle(1;bullet;4;1;#4682b4;shaded) |
11 | SymbolStyle(2;bullet;4;1;#c002a0;shaded) |
12 | ShadowStyle(all;2 2 3) |
13 | /* Set up axes. */ |
14 | |
15 | |
16 | |
17 | AxisMajorTicks(all;8;0.5;black;;out) |
18 | AxisMinorTicks(all;4;0.5;black;;out) |
19 | AxisOptions(all;front) /* Axes in front of drop lines. */ |
20 | GridLocation(all;none) /* Hide grid. */ |
21 |
| DROP_LINE_STYLE_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(17 8 19 12 17 13; /* y-values. */ |
3 | 7 5 8 6 10 15) /* Diameters */ |
4 | |
5 | DropLineStyle(1;x;0.5;steelBlue) |
6 | /* Set up styles. */ |
7 | |
8 | BorderStyle(1;none) |
9 | ShadowStyle(all;2 2 3) |
10 | LabelStyle(1;Verdana;9;bold;white) |
11 | LabelOptions(1;;;-1) |
12 | /* Set up axes. */ |
13 | |
14 | AxisMajorTicks(x;0) |
15 | AxisMajorTicks(y;6;0.5;black;;out) |
16 | AxisOptions(all;front) /* Axes in front of drop lines. */ |
17 | GridLocation(all;none) /* Hide grid. */ |
18 |