Skip to main content
A newer version of this page is available. .

WebChartControl.Series Property

Provides access to the chart control’s collection of series objects.

Namespace: DevExpress.XtraCharts.Web

Assembly: DevExpress.XtraCharts.v18.2.Web.dll

Declaration

public SeriesCollection Series { get; }

Property Value

Type Description
SeriesCollection

A SeriesCollection object that represents the collection of all series.

Remarks

The Series property provides access to a collection of all series which are defined explicitly within a chart control (either at design time or runtime). The collection is represented by an instance of the SeriesCollection class, and allows individual series (which are instances of the Series class) to be added, deleted and accessed using indexer notation.

Note that series which are bound to data at the level of a web chart control (in particular, using the ASPxDataWebControlBase.DataSource, WebChartControl.SeriesDataMember and both the SeriesBase.ArgumentDataMember and SeriesBase.ValueDataMembers properties) are created dynamically, based upon the data obtained from the specified data source and they are not presented within the Series collection. In order to access such series, use the web chart control’s specific events (such as the WebChartControl.BoundDataChanged event, for instance). To perform a centralized customization of such series, use the settings which are available via the WebChartControl.SeriesTemplate property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Series property.

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