Skip to main content

Series Views

  • 2 minutes to read

This document describes the ASP.NET Chart Control’s series view types.

Different series view types are available based on the chart’s underlying data. The view type determines the overall look and behavior of a chart’s series.

seriesView

The series view type is closely connected to the chart’s diagram type. Each diagram type plots series of a specific view type, and the set of options for each diagram type is unique. For a list of available diagram types, refer to the following help topic: Diagram Overview.

To simultaneously plot multiple series with different view types, ensure that the view types are compatible. By default, a diagram’s type is automatically determined by the view type of the first visible series in the SeriesCollection. See the following help topic to learn more about view type compatibility: Combining Different Series Views.

You can use the SeriesBase.View property to specify the view type when you first create a series, or if you need to change an existing series.

AccessingSeriesView

For details on how to change a series view, refer to the following help topic: How to: Change the View of a Series.

Note that at design time, you can only determine the view type for a WebChartControl.Series collection – so for an automatically created series, the view type can only be defined at runtime. See the following help topic to learn more: How to: Individually Change the View Type of Automatically Created Series.

Additionally, you can use the SeriesBase.View property to access options specific to this view type.

SeriesViewOptions

At runtime, you should cast the Series object to the appropriate view type.

((PieSeriesView)chartControl1.Series[0].View).RuntimeExploding = true;

For more information on specific view types, see the help topics below.

See Also