J
John Grant
I am trying to add series to my chart. The example using VBScript does not
work in jScript.
Me.ChartSpace1.Clear
Set Me.ChartSpace1.DataSource = rs
Me.ChartSpace1.SetData chDimCategories, 0, "CategoryName"
Set c = Me.ChartSpace1.Charts(0)
cType = chChartTypeColumnClustered
Me.ChartSpace1.HasMultipleCharts = False
Me.ChartSpace1.PlotAllAggregates = chPlotAggregatesSeries
Me.ChartSpace1.SetData chDimValues, 0, Array("UnitsInStock",
"UnitsOnOrder", "ReorderLevel")
So I tied setting the series directly but it fails.
Dim s As ChSeries
Set s = c.SeriesCollection.Add()
s.Type = chChartTypeColumnClustered
s.SetData chDimValues, 0, "UnitsInStock"
work in jScript.
Me.ChartSpace1.Clear
Set Me.ChartSpace1.DataSource = rs
Me.ChartSpace1.SetData chDimCategories, 0, "CategoryName"
Set c = Me.ChartSpace1.Charts(0)
cType = chChartTypeColumnClustered
Me.ChartSpace1.HasMultipleCharts = False
Me.ChartSpace1.PlotAllAggregates = chPlotAggregatesSeries
Me.ChartSpace1.SetData chDimValues, 0, Array("UnitsInStock",
"UnitsOnOrder", "ReorderLevel")
So I tied setting the series directly but it fails.
Dim s As ChSeries
Set s = c.SeriesCollection.Add()
s.Type = chChartTypeColumnClustered
s.SetData chDimValues, 0, "UnitsInStock"