Version

Control the Visibility of a Specific Series

Starting in the 2006 Volume 3 release, you can choose to display or hide a specific series on a chart (composite or non-composite) by simply toggling its Visible property.

Note
Note

The Visible property is a property of the SeriesBase class, but not the ISeries interface. It was implemented as such to ensure backwards compatibility. Consequently, in code, it is necessary to cast to the SeriesBase class in order to access the Visible property, as shown in the example code below.

In Visual Basic:

Imports Infragistics.UltraChart.Data.Series
...
CType(Me.ultraChart1.Series(0), SeriesBase).Visible = False

In C#:

using Infragistics.UltraChart.Data.Series;
...
((SeriesBase)this.ultraChart1.Series[0]).Visible = false;