Back to Devexpress

RadarLineSeriesView Class

corelibraries-devexpress-dot-xtracharts-2f406364.md

latest7.2 KB
Original Source

RadarLineSeriesView Class

Represents a series view of the Radar Line type.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class RadarLineSeriesView :
    RadarPointSeriesView,
    ILineSeriesView,
    IGeometryStripCreator,
    IGeometryHolder,
    ICustomTypeDescriptor
vb
Public Class RadarLineSeriesView
    Inherits RadarPointSeriesView
    Implements ILineSeriesView,
               IGeometryStripCreator,
               IGeometryHolder,
               ICustomTypeDescriptor

Remarks

The RadarLineSeriesView class provides the functionality of a series view of the Radar Line type within a chart control. At the same time, the RadarLineSeriesView class serves as a base for the RadarAreaSeriesView class.

In addition to the common view settings inherited from the base RadarPointSeriesView class, the RadarLineSeriesView class declares specific Radar Line type settings which allow you to define the view’s settings of line markers (RadarLineSeriesView.LineMarkerOptions), line style (RadarAreaSeriesView.LineStyle), and whether the radar line should be closed from the first to the last point (RadarLineSeriesView.Closed).

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

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

Example

The following example demonstrates how to create a ChartControl with a series of the RadarLineSeriesView 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.

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

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

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

    // Populate the series with points.
    series1.Points.Add(new SeriesPoint(0, 90));
    series1.Points.Add(new SeriesPoint(90, 95));
    series1.Points.Add(new SeriesPoint(180, 50));
    series1.Points.Add(new SeriesPoint(270, 55));
    series1.Points.Add(new SeriesPoint(0, 180));
    series1.Points.Add(new SeriesPoint(90, 185));
    series1.Points.Add(new SeriesPoint(180, 270));
    series1.Points.Add(new SeriesPoint(270, 275));

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

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

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

    // Add the chart to the form.
    RadarLineChart.Dock = DockStyle.Fill;
    this.Controls.Add(RadarLineChart);
}
vb
Imports System
Imports System.Windows.Forms
Imports DevExpress.XtraCharts
' ...

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    ' Create a new chart.
    Dim RadarLineChart As New ChartControl()

    ' Add a radar series to it.
    Dim series1 As New Series("Series 1", ViewType.RadarLine)

    ' Populate the series with points.
    series1.Points.Add(New SeriesPoint(0, 90))
    series1.Points.Add(New SeriesPoint(90, 95))
    series1.Points.Add(New SeriesPoint(180, 50))
    series1.Points.Add(New SeriesPoint(270, 55))
    series1.Points.Add(New SeriesPoint(0, 180))
    series1.Points.Add(New SeriesPoint(90, 185))
    series1.Points.Add(New SeriesPoint(180, 270))
    series1.Points.Add(New SeriesPoint(270, 275))

    ' Add the series to the chart.
    RadarLineChart.Series.Add(series1)

    ' Flip the diagram (if necessary).
    CType(RadarLineChart.Diagram, RadarDiagram).StartAngleInDegrees = 180
    CType(RadarLineChart.Diagram, RadarDiagram).RotationDirection = _ 
        RadarDiagramRotationDirection.Counterclockwise

    ' Add a title to the chart and hide the legend.
    Dim chartTitle1 As New ChartTitle()
    chartTitle1.Text = "Radar Line Chart"
    RadarLineChart.Titles.Add(chartTitle1)
    RadarLineChart.Legend.Visible = False

    ' Add the chart to the form.
    RadarLineChart.Dock = DockStyle.Fill
    Me.Controls.Add(RadarLineChart)
End Sub

Implements

IXtraSerializable

IXtraSupportDeserializeCollectionItem

Inheritance

Show 13 items

Object ChartElement SeriesViewBase RadarSeriesViewBase RadarPointSeriesView RadarLineSeriesView PolarLineSeriesView

RadarAreaSeriesView

ScatterRadarLineSeriesView

RadarRangeAreaSeriesView

ScatterPolarLineSeriesView

PolarAreaSeriesView

PolarRangeAreaSeriesView

See Also

RadarLineSeriesView Members

DevExpress.XtraCharts Namespace