Nevron .NET Vision
Chart for .NET / User's Guide / Chart Types / Radar / Radar Line

In This Topic
    Radar Line
    In This Topic

    A Radar Line chart plots the values of each category along a separate axis that radiates from the center of the chart and ends on the outer ring. A line connects all the values from a series. The following figure displays a Radar Line chart.




    Figure 1.

     Creating a Radar Line Series

    Radar Line series are represented by the NRadarLineSeries type. An instance of this type must be added to the series collection of a Radar Chart (NRadarChart object).

    C#
    Copy Code
    nChartControl1.Panels.Clear();
    // clear the Charts collection and create a new radar chart
    NRadarChart radarChart = new NRadarChart();
    nChartControl1.Panels.Add(radarChart);
    // add radar axis for each radar ray
    radarChart.Axes.Add(new NRadarAxis());
    radarChart.Axes.Add(new NRadarAxis());
    radarChart.Axes.Add(new NRadarAxis());
    // add a radar area series to the chart
    NRadarLineSeries radarLine = new NRadarLineSeries();
    radarLine.Values.Add(10);
    radarLine.Values.Add(20);
    radarLine.Values.Add(30);
    radarChart.Series.Add(radarLine);
    
    Visual Basic
    Copy Code
    NChartControl1.Panels.Clear()
    ' clear the Charts collection and create a new radar chart
    Dim radarChart As New NRadarChart
    NChartControl1.Panels.Add(radarChart)
    ' add radar axis for each radar ray
    radarChart.Axes.Add(New NRadarAxis())
    radarChart.Axes.Add(New NRadarAxis())
    radarChart.Axes.Add(New NRadarAxis())
    ' add a radar area series to the chart
    Dim radarLine As New NRadarLineSeries
    radarLine.Values.Add(10)
    radarLine.Values.Add(20)
    radarLine.Values.Add(30)
    radarChart.Series.Add(radarLine)
    
     Passing Data
    Once the Radar Line series is created you can add some data in it. Radar Line series use the Values data series for the data point values. You can either manipulate directly this data series, or use the data point interface to add data. Please refer to the Working with Data Points topic for more information.
    See Also