A newer version of this page is available. Switch to the current version.

SeriesBase.ChangeView(ViewType) Method

Changes the series' view type by specifying its type.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public void ChangeView(
    ViewType viewType
Public Sub ChangeView(
    viewType As ViewType


Name Type Description
viewType ViewType

A ViewType enumeration value.


The ChangeView method can be used to change the view type of a series object by specifying the required type of a series view.

A call to this method affects the value of the series' SeriesBase.View property.


The following example demonstrates how to programmatically change the current series view via the SeriesBase.ChangeView method. Note that this method is better than directly changing the SeriesBase.View property, because the ChangeView is implemented in a way that saves the property values of the old view to the greatest degree possible.

using DevExpress.XtraCharts;
// ...

public void ToPie(SeriesBase series) {

public void ToBars(SeriesBase series) {
See Also