New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public abstract class SeriesCollection : IEnumerable<SeriesBase>, IEnumerable

Inheritance: objectSeriesCollection

Derived Classes: SeriesCollection<T>

Implements: IEnumerableIEnumerable<SeriesBase>

Constructors

C#
protected SeriesCollection()

Methods

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

C#
public SeriesBase Add()
Returns:

SeriesBase

The new series object.

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

C#
public SeriesBase Add(IChartData categoriesData, IChartData valuesData, Title title = null)
Parameters:categoriesDataIChartData

The data for the categories of the series.

valuesDataIChartData

The data for the values of the series.

titleTitle

The title of the series.

Returns:

SeriesBase

The new series object.

Add an existing series instance to the collection.

C#
public void Add(SeriesBase series)
Parameters:seriesSeriesBase

The series to be added.

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

C#
public SeriesBase AddBubble(IChartData xValuesData, IChartData yValuesData, IChartData bubbleSizesData, Title title = null)
Parameters:xValuesDataIChartData

The data for the X values of the series.

yValuesDataIChartData

The data for the Y values of the series.

bubbleSizesDataIChartData

The data for the bubble size values of the series.

titleTitle

The title of the series.

Returns:

SeriesBase

The new series object.

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

C#
public SeriesBase AddScatter(IChartData xValuesData, IChartData yValuesData, Title title = null)
Parameters:xValuesDataIChartData

The data for the X values of the series.

yValuesDataIChartData

The data for the Y values of the series.

titleTitle

The title of the series.

Returns:

SeriesBase

The new series object.

Enumerates the series in the collection for iteration in foreach.

C#
public IEnumerator<SeriesBase> GetEnumerator()
Returns:

IEnumerator<SeriesBase>

Implements: IEnumerable<SeriesBase>.GetEnumerator()

Remove the specified series from the collection if present.

C#
public void Remove(SeriesBase series)
Parameters:seriesSeriesBase

The series to be removed.