SeriesCollection Class

Represents a collection that stores individual series within a chart control.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll


public class SeriesCollection :
Public Class SeriesCollection
    Inherits ChartElementCollection(Of Series)

Related API Members

The following members accept/return SeriesCollection objects:


Data series which are defined explicitly are maintained by a chart's diagram within its Diagram.Series collection. This collection is represented by the SeriesCollection class. The properties and methods exposed by the SeriesCollection class can be used to perform common collection operations, such as adding new or deleting existing items. Each item of the collection is represented by a Series object. Individual series can be accessed using indexer notation.


The following example demonstrates how to create a 2D Side-by-Side Bar. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram2D, and then add two series with points to the diagram's Diagram.Series collection.

<Window x:Class="SideBySideBar2DChart.Window1" 
        Title="Window1" Height="350" Width="620">
        <dxc:ChartControl Name="chartControl1">
                        <dxc:BarSideBySideSeries2D DisplayName="First Series" BarWidth="0.5">
                            <!--region #Model-->
                                <dxc:Quasi3DBar2DModel />
                            <!--endregion #Model-->
                                <dxc:SeriesPoint Argument="A" Value="1" />
                                <dxc:SeriesPoint Argument="B" Value="2" />
                                <dxc:SeriesPoint Argument="C" Value="3" />
                                <dxc:SeriesPoint Argument="D" Value="4" />
                        <dxc:BarSideBySideSeries2D DisplayName="Second Series" BarWidth="0.5">
                            <!--region #Model2-->
                                <dxc:Quasi3DBar2DModel />
                            <!--endregion #Model2-->
                                <dxc:SeriesPoint Argument="A" Value="4" />
                                <dxc:SeriesPoint Argument="B" Value="3" />
                                <dxc:SeriesPoint Argument="C" Value="2" />
                                <dxc:SeriesPoint Argument="D" Value="1" />
                <dxc:Legend />
See Also