Returns the specified value of a series in the chart object.
object.GetSeriesValue index, valueindex
If the index argument refers to a series that does not exist in the chart object, the GetSeriesValue method raises an invalid series index error.
If the valueindex argument refers to a data value that does not exist in the specified series, the GetSeriesValue method raises an out of bounds error.
The following VBScript code illustrates use of the GetSeriesValue method.
chart.SetDataFromQuery 'Retrieve the number of series stored in the chart object n_series= chart.GetSeriesCount n_categories= chart.GetValuesCount If n_series = 0 Then Response.Write "No series available" Else 'Enumerate the series stored in the chart object For i = 0 to (n_series-1) For j = 0 to (n_categories-1) Response.Write "Series[" & i & "][" & j & "]=" & chart.GetSeriesValue(i, j) Next Next End If
GetSeriesCount Method | SetSeriesValuesFromString Method | SetSeriesValuesFromArray Method
Applies To: Chart Object