Skip to main content
A newer version of this page is available. .

PolarLineSeries2D Class

The Polar Line series.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v18.2.dll

Declaration

public class PolarLineSeries2D :
    CircularLineSeries2D

Remarks

The PolarLineSeries2D class provides the functionality of a series view of the Polar Line type within a chart control.

For more information on series views of the Polar Line type, please see the Polar Line topic.

Example

The following example demonstrates how to create a 2D Polar Line chart.

To do this, it is necessary to assign the ChartControl.Diagram property to PolarDiagram2D, and then add a PolarLineSeries2D object with points to the polar diagram Diagram.Series collection.

<Window x:Class="PolarLineSeries2D.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>
            <dxc:ChartControl.Diagram>
                <dxc:PolarDiagram2D>
                    <dxc:PolarDiagram2D.Series>
                        <dxc:PolarLineSeries2D  MarkerVisible="False">
                            <dxc:PolarLineSeries2D.Points>
                                <dxc:SeriesPoint Argument="0" Value="400.0"/>
                                <dxc:SeriesPoint Argument="15" Value="386.37"/>
                                <dxc:SeriesPoint Argument="30" Value="346.41"/>
                                <dxc:SeriesPoint Argument="45" Value="282.84"/>
                                <dxc:SeriesPoint Argument="60" Value="200"/>
                                <dxc:SeriesPoint Argument="75" Value="103.53"/>
                                <dxc:SeriesPoint Argument="90" Value="0"/>
                                <dxc:SeriesPoint Argument="105" Value="-103.53"/>
                                <dxc:SeriesPoint Argument="120" Value="-200.0"/>
                                <dxc:SeriesPoint Argument="135" Value="-284.84"/>
                                <dxc:SeriesPoint Argument="150" Value="-346.41"/>
                                <dxc:SeriesPoint Argument="165" Value="-386.37"/>
                                <dxc:SeriesPoint Argument="180" Value="-400.0"/>
                                <dxc:SeriesPoint Argument="195" Value="-386.37"/>
                                <dxc:SeriesPoint Argument="210" Value="-346.41"/>
                                <dxc:SeriesPoint Argument="225" Value="-282.84"/>
                                <dxc:SeriesPoint Argument="240" Value="-200.0"/>
                                <dxc:SeriesPoint Argument="255" Value="-103.53"/>
                                <dxc:SeriesPoint Argument="270" Value="0"/>
                                <dxc:SeriesPoint Argument="285" Value="103.53"/>
                                <dxc:SeriesPoint Argument="300" Value="200.0"/>
                                <dxc:SeriesPoint Argument="315" Value="284.84"/>
                                <dxc:SeriesPoint Argument="330" Value="346.41"/>
                                <dxc:SeriesPoint Argument="345" Value="386.37"/>
                                <dxc:SeriesPoint Argument="360" Value="400.0"/>
                            </dxc:PolarLineSeries2D.Points>
                        </dxc:PolarLineSeries2D>
                    </dxc:PolarDiagram2D.Series>
                </dxc:PolarDiagram2D>
            </dxc:ChartControl.Diagram>
        </dxc:ChartControl>
    </Grid>
</Window>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PolarLineSeries2D 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.

Implements

See Also