Polar Area Chart

  • 3 minutes to read

Short Description

The Polar Area Chart is represented by the PolarAreaSeriesView object, which belongs to Polar Series Views. This view allows you to display series as filled area on a circular diagram with angles as arguments. Note that although these charts normally have a circular shape, they can also be displayed as a polygon. To specify the chart's shape, use the RadarDiagram.DrawingStyle property.

A Polar Area chart is shown in the image below.

SeriesView_PolarAreaSeries.png

Chart Type Characteristics

The table below lists the main characteristics of this chart type.

Feature Value
Series View type PolarAreaSeriesView
Diagram type PolarDiagram
Number of arguments per series point 1
Number of values per series point 1
NOTE

For information on which chart types can be combined with the Polar Area Chart, refer to the following help topic: Combining Different Series Views.

Example

The following example creates a ChartControl with a series of the PolarAreaSeriesView type, sets its general properties, and adds this chart to a form at runtime. Before proceeding with this example, first create a Windows Forms Application in Visual Studio, and add all required assemblies to the project's References list.

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);
}
TIP

For a complete sample project, see the following DevExpress Support Center example: http://www.devexpress.com/example=E1055.

See Also