Skip to main content
A newer version of this page is available. .

RadarDiagram.StartAngleInDegrees Property

Specifies the angle for the radial axis to start drawing.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty]
public double StartAngleInDegrees { get; set; }

Property Value

Type Description
Double

A Double value (in degrees, from -360 to 360).

Remarks

The rotation angle direction depends on the RadarDiagram.RotationDirection property value.

The following images demonstrate the StartAngleInDegrees property in action.

StartAngleInDegrees = 0 StartAngleInDegrees = 60
RotationDirection_clockwise StartAngleInDegrees_60

Example

The following example demonstrates how to create a ChartControl with a series of the PolarAreaSeriesView type, set its general properties, and add this chart to a form at runtime. Before proceeding with this example, first create a Windows Forms Application in Visual Studio, and include all necessary assemblies to the References list of your project.

Then, add the following code to the Form.Load event handler.

using System;
using System.Windows.Forms;
using DevExpress.XtraCharts;
// ...

private void Form1_Load(object sender, EventArgs e) {
    // Create a new chart.
    ChartControl polarAreaChart = new ChartControl();

    // Add a polar series to it.
    Series series1 = new Series("Series 1", ViewType.PolarArea);

    // Populate the series with points.
    series1.Points.Add(new SeriesPoint(0, 90));
    series1.Points.Add(new SeriesPoint(90, 70));
    series1.Points.Add(new SeriesPoint(180, 50));
    series1.Points.Add(new SeriesPoint(270, 100));

    // Add the series to the chart.
    polarAreaChart.Series.Add(series1);

    // Flip the diagram (if necessary).
    ((PolarDiagram)polarAreaChart.Diagram).StartAngleInDegrees = 180;
    ((PolarDiagram)polarAreaChart.Diagram).RotationDirection = 
        RadarDiagramRotationDirection.Counterclockwise;

    // Add a title to the chart and hide the legend.
    ChartTitle chartTitle1 = new ChartTitle();
    chartTitle1.Text = "Polar Area Chart";
    polarAreaChart.Titles.Add(chartTitle1);
    polarAreaChart.Legend.Visible = false;

    // Add the chart to the form.
    polarAreaChart.Dock = DockStyle.Fill;
    this.Controls.Add(polarAreaChart);
}
See Also