Class
SeriesCollection

Base collection for chart series with helpers to add, enumerate, and remove series.

Definition

Namespace:Telerik.Windows.Documents.Model.Drawing.Charts

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public abstract class SeriesCollection : IEnumerable

Inheritance: objectSeriesCollection

Derived Classes: SeriesCollection<T>

Implements: IEnumerable

Constructors

SeriesCollection()

Declaration

cs-api-definition
protected SeriesCollection()

Methods

Add()

Create a new series of the collection’s configured type, add it, and return the instance.

Declaration

cs-api-definition
public SeriesBase Add()

Returns

SeriesBase

The new series object.

Add(IChartData, IChartData, Title)

Create and add a category-based series using the specified categories and values and return it.

Declaration

cs-api-definition
public SeriesBase Add(IChartData categoriesData, IChartData valuesData, Title title = null)

Parameters

categoriesData

IChartData

The data for the categories of the series.

valuesData

IChartData

The data for the values of the series.

title

Title

The title of the series.

Returns

SeriesBase

The new series object.

Add(SeriesBase)

Add an existing series instance to the collection.

Declaration

cs-api-definition
public void Add(SeriesBase series)

Parameters

series

SeriesBase

The series to be added.

AddBubble(IChartData, IChartData, IChartData, Title)

Create and add a bubble-capable series using the provided X, Y, and size data and return it.

Declaration

cs-api-definition
public SeriesBase AddBubble(IChartData xValuesData, IChartData yValuesData, IChartData bubbleSizesData, Title title = null)

Parameters

xValuesData

IChartData

The data for the X values of the series.

yValuesData

IChartData

The data for the Y values of the series.

bubbleSizesData

IChartData

The data for the bubble size values of the series.

title

Title

The title of the series.

Returns

SeriesBase

The new series object.

AddScatter(IChartData, IChartData, Title)

Create and add a scatter-capable series using the provided X and Y data and return it.

Declaration

cs-api-definition
public SeriesBase AddScatter(IChartData xValuesData, IChartData yValuesData, Title title = null)

Parameters

xValuesData

IChartData

The data for the X values of the series.

yValuesData

IChartData

The data for the Y values of the series.

title

Title

The title of the series.

Returns

SeriesBase

The new series object.

GetEnumerator()

Enumerates the series in the collection for iteration in foreach.

Declaration

cs-api-definition
public IEnumerator<SeriesBase> GetEnumerator()

Returns

IEnumerator<SeriesBase>

Remove(SeriesBase)

Remove the specified series from the collection if present.

Declaration

cs-api-definition
public void Remove(SeriesBase series)

Parameters

series

SeriesBase

The series to be removed.