RadarLineSeries2D Class
The Radar Line series.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.2.dll
Declaration
Remarks
The RadarLineSeries2D class provides the functionality of a series view of the Radar Line type within a chart control.
For more information on series views of the Radar Line type, please see the Radar Line topic.
Example
The following example demonstrates how to create a 2D Radar Line chart.
To do this, it is necessary to assign the ChartControl.Diagram property to RadarDiagram2D, and then add a RadarLineSeries2D
object with points to the radar diagram Diagram.Series collection.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-2d-radar-line-chart-e4167.
<Window x:Class="RadarLineSeries2D.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<dxc:ChartControl EnableAnimation="True" ToolTipEnabled="True">
<dxc:ChartControl.Diagram>
<dxc:RadarDiagram2D RotationDirection="Clockwise">
<dxc:RadarDiagram2D.Series>
<dxc:RadarLineSeries2D Closed="True">
<dxc:RadarLineSeries2D.Points>
<dxc:SeriesPoint Argument="N" Value="2"/>
<dxc:SeriesPoint Argument="NNE" Value="3"/>
<dxc:SeriesPoint Argument="NE" Value="3"/>
<dxc:SeriesPoint Argument="ENE" Value="4"/>
<dxc:SeriesPoint Argument="E" Value="8"/>
<dxc:SeriesPoint Argument="ESE" Value="8"/>
<dxc:SeriesPoint Argument="SE" Value="3"/>
<dxc:SeriesPoint Argument="SSE" Value="2"/>
<dxc:SeriesPoint Argument="S" Value="3"/>
<dxc:SeriesPoint Argument="SSW" Value="2"/>
<dxc:SeriesPoint Argument="SW" Value="6"/>
<dxc:SeriesPoint Argument="WSW" Value="16"/>
<dxc:SeriesPoint Argument="W" Value="8"/>
<dxc:SeriesPoint Argument="WNW" Value="6"/>
<dxc:SeriesPoint Argument="NW" Value="6"/>
<dxc:SeriesPoint Argument="NNW" Value="4"/>
</dxc:RadarLineSeries2D.Points>
</dxc:RadarLineSeries2D>
</dxc:RadarDiagram2D.Series>
<dxc:RadarDiagram2D.AxisY>
<dxc:RadarAxisY2D TickmarksMinorVisible="False"
TickmarksVisible="False" Thickness="0"/>
</dxc:RadarDiagram2D.AxisY>
</dxc:RadarDiagram2D>
</dxc:ChartControl.Diagram>
</dxc:ChartControl>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RadarLineSeries2D class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.