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) |