RadarChartOptions
RadarChartOptions ( scalingAxisIndex ; gridShape ; doAddArrows ; doNotClosePolygon ; innerRadius ; doFillDoughnut )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
scalingAxisIndex | int | 0..10000 | 1 | 0...no scaling |
gridShape | int | 0..3 | oval | |
doAddArrows | int | 0..1 | off | |
doNotClosePolygon | int | 0..1 | off | |
innerRadius | num | 0..100 | 0 | In % of outer radius |
doFillDoughnut | int | 0..1 | on |
Examples
Description
Radar charts can be varied in many ways by using the RadarChartOptions() function. Please note that the RadarChartOptions() function should be entered after the RadarChart() function. By using the 1st argument scalingAxisIndex it is possible to define along which axis the scaling will be shown. As the default, the scaling is placed along the first axis (scalingAxisIndex = 1). When scalingAxisIndex = 0, no scaling is shown, when scalingAxisIndex = –1, the scaling is shown along all axes. As an option, a list of axis indices can be entered, for example: RadarChartOptions(1 3 5).
| RADAR_CHART_OPTIONS_01 |
1 | OpenDrawing(280;180) |
2 | ChartData(12 13 12 13 10 5 12 14) |
3 | |
4 | RadarChartOptions(7) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b420) |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | /* Set up axes. */ |
9 | |
10 | ScalingOptions(;;;on) /* Hide "0" */ |
11 | |
12 | AxisMajorTicks(all;6;0.25;gray;;out) |
13 | AxisLabelText(all;"A";"B";"C";"D";"E";"F";"G";"H") |
14 | /* Set up grid. */ |
15 | GridLocation(all;none) /* Hide grid. */ |
16 |
By using the 2nd argument gridShape, it is possible to choose between the default oval grid (gridShape = oval) and a polygonal grid (gridShape = poly) or to suppress the grid (gridShape = none). The grid can also be suppressed by using GridLocation(;none).
| RADAR_CHART_OPTIONS_02 |
1 | OpenDrawing(280;180) |
2 | ChartData(12 8 18 13 8 15 12 14) |
3 | RadarChart(oval+symbol;-90) |
4 | RadarChartOptions(0;poly) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b420) |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | SymbolStyle(1;circle;6;1;#4682b4;;white) |
9 | /* Set up axes. */ |
10 | |
11 | ScalingOptions(;;;on) /* Hide "0" */ |
12 | |
13 | AxisMajorTicks(all;0) |
14 | AxisLabelText(all;"|u|") |
15 | /* Set up grid. */ |
16 | MajorGridLineWidths(all;all;0.25) |
17 | |
18 |
| RADAR_CHART_OPTIONS_03 |
1 | OpenDrawing(280;180) |
2 | ChartData(33 32 16 29 18) |
3 | |
4 | RadarChartOptions(0;poly) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;none) |
8 | SymbolStyle(1;bullet;16;1;#4682b4;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(all;all;0.5) |
19 | MajorGridLineColors(all;all;#4682b4) |
20 | |
21 |
As an option, arrows originating from the center can be added to radar charts (doAddArrows = on). The appearance of the arrows can be controlled by the ArrowStyle() function.
| RADAR_CHART_OPTIONS_04 |
1 | OpenDrawing(280;180) |
2 | ChartData(33 32 35 27 32) |
3 | |
4 | RadarChartOptions(0;none;on) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | FillStyle(1;#4682b410) |
7 | BorderStyle(1;poly;0.5;#4682b4) |
8 | ArrowStyle(1;1;#4682b4;;;12;7;3) |
9 | |
10 | /* Set up axes. */ |
11 | AxisOptions(all;none) /* Hide axes. */ |
12 |
| RADAR_CHART_OPTIONS_05 |
1 | OpenDrawing(280;180) |
2 | ChartData(33 19 35 40 29) |
3 | |
4 | RadarChartOptions(0;none;on) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;none) |
8 | ShadowStyle(all;2 2 3) |
9 | LabelBackground(1;white;;2;white;;2 2 3) |
10 | |
11 | ArrowStyle(1;1.5;#4682b4;;;0;0) |
12 | /* Set up axes. */ |
13 | AxisOptions(all;none) /* Hide axes. */ |
14 |
By using FillStyle(;none), the fill can be suppressed; the remaining border connects the points in the form of a closed line. By activating the 4th argument doNotClosePolygon = on, the closing line between the last and first point can be suppressed.
| RADAR_CHART_OPTIONS_06 |
1 | OpenDrawing(280;180) |
2 | ChartData(25 21 19 25 11) |
3 | RadarChart(symbol+oval+shadow;120;-240) |
4 | RadarChartOptions(1;oval;off;on) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | SymbolStyle(1;circle;6;1;#4682b4;;white) |
9 | ShadowStyle(all;2 2 3) |
10 | /* Set up axes. */ |
11 | |
12 | ScalingOptions(;;;on) /* Hide "0" */ |
13 | |
14 | AxisMajorTicks(all;0) |
15 | AxisLabelText(1;"A-1";"A-2";"A-3";"A-4";"A-5") |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(all;all;0.25) |
18 | |
19 |
| RADAR_CHART_OPTIONS_07 |
1 | OpenDrawing(280;180) |
2 | ChartData(33 32 26 39 22) |
3 | RadarChart(oval+label+shadow;-135;270) |
4 | RadarChartOptions(0;poly;off;on) /* After RadarChart() */ |
5 | /* Set up styles. */ |
6 | |
7 | BorderStyle(1;poly;1.5;#4682b4) |
8 | ShadowStyle(all;2 2 3) |
9 | LabelTexts(1;"A: |u|";"B: |u|";"C: |u|";"D: |u|";"E: |u|") |
10 | LabelBackground(1;white;;0;;;2 2 3) |
11 | |
12 | /* Set up axes. */ |
13 | |
14 | AxisOptions(all;none) /* Hide axes. */ |
15 | /* Set up grid. */ |
16 | MajorGridLineWidths(all;all;0.25) |
17 | |
18 |