Skip to main content

LineSeries2D Class

Represents the Line series.

Namespace: DevExpress.Xpf.Charts

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

#Declaration

[TemplatePart(Name = "PART_AdditionalGeometryHolder", Type = typeof(ChartContentPresenter))]
[TemplatePart(Name = "PART_PointsPanel", Type = typeof(SimplePanel))]
public class LineSeries2D :
    MarkerSeries2D,
    ISupportMarker2D,
    IGeometryHolder

#Remarks

The LineSeries2D class exposes the LineSeries2D.MarkerModel, LineSeries2D.MarkerSize and LineSeries2D.MarkerVisible properties.

#Examples

The following example demonstrates how to create a 2D Line chart. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram2D, and then add two LineSeries2D objects with points to the diagram's Diagram.Series collection.

Also, this example shows how to add a legend (showing series names) to a chart.

See Also