RadarDiagram2D Class
A diagram to plot Radar Series.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.1.dll
Declaration
Remarks
The RadarDiagram2D class represents a circular diagram used to plot Radar chart types.
In addition to the settings inherited from the base Diagram class, the RadarDiagram2D class implements specific properties that allow you to control the following characteristics of a diagram:
- settings of the X and Y axes (RadarDiagram2D.AxisX, RadarDiagram2D.ActualAxisX, RadarDiagram2D.AxisY, RadarDiagram2D.ActualAxisY),
- the diagram’s rotation settings (CircularDiagram2D.RotationDirection, CircularDiagram2D.StartAngle).
An object of the RadarDiagram2D type can be accessed via the ChartControl.Diagram property of a chart control that displays a Radar series.
For more information, refer to Radar Series.
Example
The following example demonstrates how to create a 2D Radar Area chart.
To do this, it is necessary to assign the ChartControl.Diagram property to RadarDiagram2D
, and then add a RadarAreaSeries2D object with points to the radar diagram Series collection.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-2d-radar-area-chart-e4166.
<Window x:Class="RadarAreaSeries2D.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:RadarAreaSeries2D Transparency="0.6">
<dxc:RadarAreaSeries2D.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:RadarAreaSeries2D.Points>
</dxc:RadarAreaSeries2D>
</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 snippets (auto-collected from DevExpress Examples) contain references to the RadarDiagram2D 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.