ArrowStyle
ArrowStyle ( seriesIndex ; lineStroke ; lineColor ; lineColorVariant ; headLocation ; headLength ; headWidth ; headIndent ; hasHollowHead )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
seriesIndex | int | 0..10000 | all | |
lineStroke | num[] | 0..1000 | 1 | Dimension:[pt] |
lineColor | rgba | 0..255 | black | |
lineColorVariant | int | -1..128 | solid | |
headLocation | int | 0..3 | end | |
headLength | num | 0..1000 | 16 | Dimension:[pt] |
headWidth | num | 0..1000 | 8 | Dimension:[pt] |
headIndent | num | -1000..1000 | 0 | Dimension:[pt] |
hasHollowHead | int | 0..1 | off |
Examples
ArrowStyle(2;1;red;;begin+end)
Description
As an option, arrows can be added to radar and polar charts. They run from the center to the individual chart points. As the default, all arrows are black and one-pixel wide. By using the ArrowStyle() function, the appearance of the arrows, including the arrowheads, can be controlled separately for each data series.
| ARROW_STYLE_01 |
1 | OpenDrawing(250;150) |
2 | ChartData(35 35 25 25 25 25 15) |
3 | |
4 | RadarChartOptions(0;none;on) /* Hide scaling and grid. */ |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b420) |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | ArrowStyle(1;0.25;#4682b4;;end;12;6) |
9 | /* Set up axes. */ |
10 | |
11 |
Furthermore, the arrowhead can be placed on the end (default), at the beginning or on both sides using the argument headLocation.
| ARROW_STYLE_02 |
1 | OpenDrawing(150;150) |
2 | ChartData(40 40 40 40 40 40) |
3 | |
4 | RadarChartOptions(0;none;on) /* Hide scaling and grid. */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | ArrowStyle(1;1;#4682b4;;begin+end;12;6;3) |
9 | /* Set up axes. */ |
10 | |
11 |
| ARROW_STYLE_03 |
1 | OpenDrawing(250;150) |
2 | ChartData(-10 21 7 -25 9 27; /* x-values. */ |
3 | -22 -16 34 11 -18 19) /* y-values. */ |
4 | |
5 | PolarChartOptions(0;;on) /* Hide scaling. */ |
6 | /* Set up styles. */ |
7 | |
8 | BorderStyle(1;none) |
9 | ArrowStyle(1;1.5;#4682b4;;end;0;8) |
10 | /* Set up axes. */ |
11 | |
12 | AxisLabelText(all;"|u|˚") |
13 | /* Set up grid. */ |
14 | MajorGridLineWidths(y;x;0.5) |
15 | MajorGridLineWidths(x;y;0.25) |
16 |
For more examples, please refer to AddArrow() .