Returns the number of series in the chart object.

object.GetSeriesCount 

Arguments

object
Required. A Chart object.

Return Value

An integer value containing the series count.

VBScript Code Sample

The following VBScript code illustrates use of the GetSeriesCount method.

' Add 3 series and display the result
chart.AddSeries
chart.AddSeries
chart.AddSeries

count= chart.GetSeriesCount
' count is now equal to 3
Response.Write "Number of series in chart= " & count

See Also

AddSeries Method | SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method | GetSeriesValue Method

Applies To: Chart Object