Polar Point Chart

  • 3 minutes to read

Short Description

The Polar Point Chart is represented by the PolarPointSeriesView object, which belongs to Polar Series Views. This view is useful when it's necessary to show points from two or more different series on the same circular diagram on the basis of angles. Note that although these charts normally have a circular shape, they can also be displayed as a polygon. This is controlled via the RadarDiagram.DrawingStyle property.

A Polar Point chart is shown in the image below.

SeriesView_PolarPointSeries.png

Chart Type Characteristics

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

Feature Value
Series View type PolarPointSeriesView
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 Point Chart, refer to the Series Views Compatibility document.

Example

The following example demonstrates how to create a ChartControl with a series of the PolarPointSeriesView 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 polarPointChart = new ChartControl();

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

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

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

    // Adjust the view-type specific properties of the series.
    PolarPointSeriesView myView = (PolarPointSeriesView)series1.View;

    myView.PointMarkerOptions.Kind = MarkerKind.Star;
    myView.PointMarkerOptions.StarPointCount = 5;
    myView.PointMarkerOptions.Size = 20;

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

    // Add a title to the chart, and hide the legend.
    polarPointChart.Titles.Add(new ChartTitle());
    polarPointChart.Titles[0].Text = "A Polar Point Chart";
    polarPointChart.Legend.Visible = false;

    // Add the chart to the form.
    polarPointChart.Dock = DockStyle.Fill;
    this.Controls.Add(polarPointChart);
}
TIP

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E1057.

See Also