PolarChartOptions

PolarChartOptions ( scalingAxisIndex ;​ gridShape ;​ doAddArrows ;​ doNotClosePolygon ;​ numOfAxes ;​ 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
numOfAxes int 2..100 12
innerRadius num 0..100 0 In % of outer radius
doFillDoughnut int 0..1 on
Examples

PolarChartOptions(1;​poly)

PolarChartOptions(;​;​;​;​36)

PolarChartOptions(2;​oval;​;​;​20;​25;​0)

Description

Polar charts can be varied in many ways by using the PolarChartOptions() function. Please note that the PolarChartOptions() function should be entered after the PolarChart() 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), this is the axis at 0 degrees. 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: PolarChartOptions(1 3 5).

POLAR_CHART_OPTIONS_01
1

OpenDrawing(280;​180)

2

ChartData(5 7 3 -5 -7 -2 -3;​ /* x-values. */

3

6 3 -6 -4 2 3 6) /* y-values. */

4

PolarChart(oval+shadow)

5

PolarChartOptions(10) /* After PolarChart() */

6

/* Set up styles. */

7

FillStyle(1;​#ffca5f20)

8

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

9

ShadowStyle(all;​2 2 3)

10

/* Set up axes. */

11

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

12

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

13

AxisLine(all;​0.25;​#555)

14

AxisMajorTicks(all;​6;​0.25;​#555;​;​out)

15

AxisOptions(all;​front)

16

/* Set up grid. */

17

GridLocation(all;​none) /* Hide grid. */

18

CloseDrawing()

POLAR_CHART_OPTIONS_01

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).

POLAR_CHART_OPTIONS_02
1

OpenDrawing(280;​180)

2

ChartData(5 7 3 -5 -7 -2 -3;​ /* x-values. */

3

6 3 -6 -4 2 3 6) /* y-values. */

4

PolarChart(oval+shadow)

5

PolarChartOptions(0;​poly) /* After PolarChart() */

6

/* Set up styles. */

7

FillStyle(1;​#ffca5f20)

8

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

9

ShadowStyle(all;​2 2 3)

10

/* Set up axes. */

11

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

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

/* Set up grid. */

15

GridLocation(all;​front)

16

MajorGridLineWidths(all;​all;​0.25)

17

GridFrame(all;​0.5;​#888)

18

CloseDrawing()

POLAR_CHART_OPTIONS_02

As an option, arrows originating from the center can be added to polar charts (doAddArrows = on). The appearance of the arrows can be controlled by using the ArrowStyle() function.

POLAR_CHART_OPTIONS_03
1

OpenDrawing(280;​180)

2

ChartData(5 7 3 -5 -7 -4 -3;​ /* x-values. */

3

6 3 -6 -4 2 3 6) /* y-values. */

4

PolarChart(oval)

5

PolarChartOptions(0;​none;​on) /* After PolarChart() */

6

/* Set up styles. */

7

FillStyle(1;​#4682b420)

8

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

9

ArrowStyle(1;​1;​#4682b4;​;​;​12;​6;​2)

10

/* Set up axes. */

11

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

12

CloseDrawing()

POLAR_CHART_OPTIONS_03

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.

POLAR_CHART_OPTIONS_04
1

OpenDrawing(280;​180)

2

ChartData(5 7 3 -5 -7 -4 -3;​ /* x-values. */

3

6 3 -6 -4 2 3 6) /* y-values. */

4

PolarChart(oval+symbol+shadow)

5

PolarChartOptions(3;​oval;​off;​on) /* After PolarChart() */

6

/* Set up styles. */

7

FillStyle(1;​none)

8

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

9

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

10

ShadowStyle(all;​2 2 3)

11

/* Set up axes. */

12

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

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()

POLAR_CHART_OPTIONS_04

The number of radial grid lines (axes) can be controlled by using the 5th argument numOfAxes. As the default, polar charts are drawn with 12 radial grid lines.

POLAR_CHART_OPTIONS_05
1

OpenDrawing(280;​180)

2

ChartData(5 7 3 -5 -7 -2 -3;​ /* x-values. */

3

6 3 -6 -4 2 3 6) /* y-values. */

4

/*  90...0-degrees-axis on the right. */

5

/* -360...degrees run counter-clockwise. */

6

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

7

PolarChartOptions(0;​poly;​off;​;​8) /* After PolarChart() */

8

/* Set up styles. */

9

FillStyle(1;​#4682b420)

10

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

11

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

12

/* Set up axes. */

13

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

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

AxisLabelText(all;​"|u|˚")

17

/* Set up grid. */

18

MajorGridLineWidths(all;​all;​0.25)

19

GridFrame(all;​0.5;​#888)

20

CloseDrawing()

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

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

×