Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LineScatterSeries2D Class

The 2D Scatter Line series.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class LineScatterSeries2D :
    LineSeries2D

#Example

The following example demonstrates how to create a Scatter Line chart. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram2D, and then add a LineScatterSeries2D object with points to the diagram’s Diagram.Series collection.

View Example

<Window x:Class="ScatterLine2DChart.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="400" Width="500" >
    <Grid>
        <dxc:ChartControl Name="chartControl1">
            <dxc:ChartControl.Diagram>
                <dxc:XYDiagram2D>
                    <dxc:XYDiagram2D.Series>
                        <dxc:LineScatterSeries2D ArgumentScaleType="Numerical" >
                            <dxc:LineScatterSeries2D.Points>
                                <dxc:SeriesPoint Argument="1" Value="1" />
                                <dxc:SeriesPoint Argument="3" Value="9" />
                                <dxc:SeriesPoint Argument="5" Value="1" />
                                <dxc:SeriesPoint Argument="0" Value="6" />
                                <dxc:SeriesPoint Argument="6" Value="6" />
                                <dxc:SeriesPoint Argument="1" Value="1" />
                            </dxc:LineScatterSeries2D.Points>
                                <dxc:LineScatterSeries2D.Label>
                                <dxc:SeriesLabel Visible="False" />
                            </dxc:LineScatterSeries2D.Label>
                        </dxc:LineScatterSeries2D>                                          
                    </dxc:XYDiagram2D.Series>
                </dxc:XYDiagram2D>
            </dxc:ChartControl.Diagram>
        </dxc:ChartControl>
    </Grid>
</Window>

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

See Also