Radar Area series are represented by the NRadarAreaSeries 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 NRadarAreaSeries radarArea = new NRadarAreaSeries(); radarArea.Values.Add(10); radarArea.Values.Add(20); radarArea.Values.Add(30); radarChart.Series.Add(radarArea); |
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 radarArea As New NRadarAreaSeries radarArea.Values.Add(10) radarArea.Values.Add(20) radarArea.Values.Add(30) radarChart.Series.Add(radarArea) |