Skip to main content

ScatterRadarLineSeriesView Class

Represents a series view of the Scatter Radar Line type.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

Declaration

public class ScatterRadarLineSeriesView :
    RadarLineSeriesView

Remarks

The ScatterRadarLineSeriesView class provides the functionality of a series view of the Radar and Line types within a chart control.

Note that a particular view type can be defined for a series via its SeriesBase.View property.

For more information on series views of the Polar Line type, please see the Scatter Radar Line Chart topic.

Example

The following example demonstrates how to create a Scatter Radar Line Chart chart at runtime.

Note that this series view type is associated with the RadarDiagram type, and you should cast your diagram object to this type in order to access its specific options.

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

namespace ScatterRadarLine {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

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

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

            // Create a scatter radar line series.
            Series series1 = new Series("Series 1", ViewType.ScatterRadarLine);

            // Add points to it.        
            series1.Points.Add(new SeriesPoint(2.58308729295161, 2.92389013581495));
            series1.Points.Add(new SeriesPoint(2.72271363311115, 1.60362130049876));
            series1.Points.Add(new SeriesPoint(2.8623399732707, 0.916511826809461));
            series1.Points.Add(new SeriesPoint(3.00196631343025, 0.426951214001806));
            series1.Points.Add(new SeriesPoint(3.14159265358979, 3.67381906146713E-16));
            series1.Points.Add(new SeriesPoint(0.15707963267949, 0.479172332020966));
            series1.Points.Add(new SeriesPoint(0.36651914291880, 1.16748565197914));
            series1.Points.Add(new SeriesPoint(0.575958653158129, 1.82356171354251));
            series1.Points.Add(new SeriesPoint(0.785398163397448, 2.12132034355964));
            series1.Points.Add(new SeriesPoint(0.994837673636768, 1.82356171354251));
            series1.Points.Add(new SeriesPoint(1.20427718387609, 1.16748565197914));
            series1.Points.Add(new SeriesPoint(1.41371669411541, 0.479172332020967));
            series1.Points.Add(new SeriesPoint(4.74729556542458, 0.10483062990165));
            series1.Points.Add(new SeriesPoint(5.02654824574367, 1.06132878657975));
            series1.Points.Add(new SeriesPoint(5.23598775598299, 2.47662710943896));
            series1.Points.Add(new SeriesPoint(5.27089434102288, 2.92389013581494));

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

            // Flip the diagram (if necessary).
            ((RadarDiagram)scatterRadarLineChart.Diagram).StartAngleInDegrees = 10;
            ((RadarDiagram)scatterRadarLineChart.Diagram).RotationDirection =
                   RadarDiagramRotationDirection.Clockwise;

            // Access the view-type-specific options of the series.
            ((ScatterRadarLineSeriesView)series1.View).LineStyle.DashStyle = DashStyle.Dot;

            // Hide the legend (if necessary).
            scatterRadarLineChart.Legend.Visibility = DefaultBoolean.False;

            // Add a title to the chart (if necessary).
            scatterRadarLineChart.Titles.Add(new ChartTitle());
            scatterRadarLineChart.Titles[0].Text = "A Scatter Radar Line Chart";
        }
    }
}
See Also