Add Method (WCSeriesCollection Collection) Example
This example adds a new series to the specified chart in the chart workspace and then sets the values for the new series.
Dim values(7)
values(0) = 0
values(1) = 1
values(2) = 10
values(3) = 25
values(4) = 30
values(5) = 40
values(6) = 60
Set s2 = ChartSpace1.Charts(0).SeriesCollection.Add
Set c = ChartSpace1.Constants
s2.SetData c.chDimValues, c.chDataLiteral, values