RadarChart

RadarChart ( appearanceConst ;​ startAngle ;​ arcAngle ;​ doShiftIntervals )

Argument Type Range Default Note
appearanceConst int 0..127 default
startAngle num -360..+360 0 Dimension:[deg]
arcAngle num -360..+360 360 Dimension:[deg]
doShiftIntervals int 0..1 off
Examples

RadarChart(label+oval;​90)

RadarChart(symbol+shadow;​120;​-240)

Description

By using the RadarChart() function, chart values are placed along radial axes. The maximum number of values per data series determines the number of axes. As the default, the individual values of a data series are connected to a polygon.

RADAR_CHART_01
1

OpenDrawing(160;​160)

2

ChartData(43 32 15 33 18 35 16 40 19)

3

RadarChart()

4

/* Set up styles. */

5

FillStyle(1;​#4682b420)

6

BorderStyle(1;​poly;​1;​#4682b4)

7

/* Set up axes. */

8

Scaling(;​linear;​0;​50;​5)

9

ScalingOptions(;​;​;​on) /* Hide "0" */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(all;​all;​0.25)

14

GridFrame(all;​0.5;​#888)

15

CloseDrawing()

RADAR_CHART_01

The 1st argument appearanceConstants makes it possible to choose between an elliptical form (appearanceConstants = oval), i.e. the entire available area can be made use of, or a circular shape. As the default, all polar charts are drawn circular. In addition, symbols (appearanceConstants = symbol), shadow (appearanceConstants = shadow) and labels (appearanceConstants = label) can be added to charts. All options can be combined by using a plus sign "+". The fills, borders, symbols and shadows can be varied by using the style functions FillColorScheme() , FillStyle() , PictureStyle() , BorderColorScheme() , BorderStyle() , SymbolColorScheme() , SymbolStyle() and ShadowStyle() and the labels by using the 4 style functions LabelTexts() , LabelStyle() , LabelBackground() and LabelOptions() .

RADAR_CHART_02
1

OpenDrawing(280;​180)

2

ChartData(20 32 18 33 19 35 16 40 32)

3

RadarChart(oval+symbol+label+shadow)

4

/* Set up styles. */

5

FillStyle(1;​#ffca5f)

6

BorderStyle(1;​poly;​1.0;​#bd9648)

7

SymbolStyle(1;​circle;​5;​1;​#bd9648;​;​white)

8

ShadowStyle(all;​2 2 3)

9

/* Set up axes. */

10

Scaling(;​linear;​0;​50;​5)

11

AxisOptions(all;​none) /* Hide axes. */

12

/* Set up grid. */

13

GridLocation(all;​front)

14

MajorGridLineWidths(all;​all;​0.25)

15

GridFrame(all;​0.5;​#888)

16

CloseDrawing()

RADAR_CHART_02
RADAR_CHART_03
1

OpenDrawing(280;​180)

2

ChartData(43 32 15 33 18 35 16 40 19;​ /* 1st series. */

3

22 35 25 45 38 25 36 30 30) /* 2nd series. */

4

RadarChart(oval+symbol+shadow)

5

/* Set up styles. */

6

FillStyle(1;​2 0.5 0.5 0.0 250 250 0 255 1.0 250 100 42 255)

7

FillStyle(2;​none)

8

BorderStyle(1;​none)

9

BorderStyle(2;​poly;​1.5;​#4682b4)

10

SymbolStyle(1;​none)

11

SymbolStyle(2;​circle;​6;​1;​#4682b4;​;​white)

12

ShadowStyle(all;​2 2 3)

13

/* Set up axes. */

14

Scaling(;​linear;​0;​50;​5)

15

ScalingOptions(;​;​;​on) /* Hide "0" */

16

AxisLine(all;​0)

17

AxisMajorTicks(all;​0)

18

AxisOptions(all;​front)

19

/* Set up grid. */

20

MajorGridLineWidths(all;​all;​0.25)

21

GridFrame(all;​0.5;​#888)

22

GridLocation(all;​front)

23

CloseDrawing()

RADAR_CHART_03

By suppressing both the fill and border using FillStyle(;​none) and BorderStyle(;​none), it is possible to depict chart values solely by using symbols.

RADAR_CHART_04
1

OpenDrawing(280;​180)

2

ChartData(43 32 15 33 18;​ /* 1st series. */

3

25 16 40 19) /* 2nd series. */

4

RadarChart(oval+symbol)

5

/* Set up styles. */

6

FillStyle(all;​none)

7

BorderStyle(all;​none)

8

SymbolStyle(1;​bullet;​6;​1;​crimson;​shaded)

9

SymbolStyle(2;​square;​6;​1;​#4682b4;​shaded)

10

/* Set up axes. */

11

Scaling(;​linear;​0;​50;​5)

12

ScalingOptions(;​;​;​on) /* Hide "0" */

13

AxisLine(all;​0)

14

AxisMajorTicks(all;​0)

15

/* Set up grid. */

16

MajorGridLineWidths(all;​all;​0.25)

17

GridFrame(all;​0.5;​#888)

18

CloseDrawing()

RADAR_CHART_04

The texts for the axis labels are defined by using the AxisLabelText() function. On radar charts the axis index is always 1; axis indices greater than 1 are ignored. As the default, the axes start at the top (12 o'clock) and run clockwise over a range of 360°. By using the arguments startAngle and arcAngle, the position of the first axis as well as the direction and range (arc angle) of the axes can be defined. By defining a start angle greater than zero all axes are moved clockwise; by entering a negative start angle they are moved counter-clockwise. All angles are to be entered within the range of ±360 degrees; A start angle of 0 degrees is at the top (12 o'clock), of 90 degrees is on the right (3 o'clock) and of -90 degrees is on the left (9 o'clock).

RADAR_CHART_05
1

OpenDrawing(280;​180)

2

ChartData(43 38 32 30 38)

3

RadarChart(oval+symbol;​90;​-360)

4

/* Set up styles. */

5

FillStyle(1;​#4682b420)

6

BorderStyle(1;​poly;​1.5;​#4682b4)

7

SymbolStyle(1;​circle;​6;​1;​#4682b4;​;​white)

8

/* Set up axes. */

9

Scaling(;​linear;​0;​50;​5)

10

ScalingOptions(;​;​;​on) /* Hide "0" */

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

AxisLabelText(all;​"A-1";​"A-2";​"A-3";​"A-4";​"A-5")

14

/* Set up grid. */

15

GridLocation(all;​front)

16

MajorGridLineWidths(all;​all;​0.25)

17

GridFrame(all;​0.5;​#888)

18

CloseDrawing()

RADAR_CHART_05

By using the 4th argument doShiftIntervals = on, the values to be represented will not be drawn vertex-oriented as points along the radial axes but rather wedge-oriented between the axes.

RADAR_CHART_06
1

OpenDrawing(280;​180)

2

ChartData(18 8 15 15 10)

3

RadarChart(oval;​;​;​on)

4

RadarChartOptions(0;​poly) /* After RadarChart() */

5

/* Set up styles. */

6

FillStyle(1;​#4682b420)

7

BorderStyle(1;​;​1.5;​#4682b4)

8

/* Set up axes. */

9

Scaling(;​linear;​0;​20;​4)

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

AxisLabelText(all;​"A-1";​"A-2";​"A-3";​"A-4";​"A-5")

13

/* Set up grid. */

14

GridLocation(all;​front)

15

MajorGridLineWidths(all;​all;​0.25)

16

GridFrame(all;​0.5;​#888)

17

CloseDrawing()

RADAR_CHART_06
RADAR_CHART_07
1

OpenDrawing(280;​180)

2

ChartData(18 8 15 17 null 10)

3

RadarChart(oval+shadow;​;​;​on)

4

/* Set up styles. */

5

FillStyle(1;​2 0.5 0.5 0.0 250 250 0 255 1.0 50 120 0 255)

6

BorderStyle(1;​;​1.5;​50 120 0)

7

ShadowStyle(all;​2 2 3)

8

/* Set up axes. */

9

Scaling(;​linear;​0;​20;​4)

10

ScalingOptions(;​;​;​on) /* Hide "0" */

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

AxisLabelText(all;​"A-1";​"A-2";​"A-3";​"A-4";​"A-5";​"A-6")

14

AxisOptions(all;​front)

15

/* Set up grid. */

16

GridLocation(all;​front)

17

MajorGridLineWidths(all;​all;​0.25)

18

GridFrame(all;​0.5;​#888)

19

CloseDrawing()

RADAR_CHART_07
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×