I assume you have the PivotList control all setup and populated. Use the following code to bind the Chartspace control to the PivotList control
set wc.datasource = pivotcontro
wc.datasourcetype = C.chDataSourceTypePivotLis
set chart = wc.charts.ad
chart.type = C.chChartTypeBarStacked100
chart.haslegend = tru
chart.setdata C.chDimSeriesNames, 0, C.chPivotRows 'C.chPivotColAggregate
chart.setdata C.chDimCategories, 0, C.chPivotColumns 'C.chPivotRowAggregate
chart.setdata C.chDimValues, 0,
Thao Mou
OWC Chartspace Suppor
This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.ht
----- Francis wrote: ----
Hi all
How can I bind a ChartSpace to a PivotTable in OWC 9.0? I can do this easil
in OWC 10.0. But I can not repeat this in OWC 9.0
Can anyone help me
Best regards
Franci