M
mariacp
Hello!!
I'm trying to draw a custom chart.
First of all, I entered the data "manually":
aCats = New Object() {"A", "B", "C"}
aVals = New Object() {100, 120, 30}
oSer.SetData(OWC11.ChartDimensionsEnum.chDimSeriesNames, -1
"MySeries")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimCategories, 0
aCats)
oSer.SetData(OWC11.ChartDimensionsEnum.chDimValues, 0, aVals)
All the events (afterrender, beforerender, afterfinalrender...) worke
ok.
If I change the data source to an spreadsheet owc:
Me.AxChartSpace1.DataSource = CType(Me.AxSpreadsheet1.GetOcx()
msdatasrc.DataSource)
oSer.SetData(OWC11.ChartDimensionsEnum.chDimSeriesNames, -1
"MySeries")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimCategories, 0
"A1:A26")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimValues, 0
"B1:B26")
Those events don't get called anymore.
Anyone can tell me why?
Thanks a lot.
MARI
I'm trying to draw a custom chart.
First of all, I entered the data "manually":
aCats = New Object() {"A", "B", "C"}
aVals = New Object() {100, 120, 30}
oSer.SetData(OWC11.ChartDimensionsEnum.chDimSeriesNames, -1
"MySeries")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimCategories, 0
aCats)
oSer.SetData(OWC11.ChartDimensionsEnum.chDimValues, 0, aVals)
All the events (afterrender, beforerender, afterfinalrender...) worke
ok.
If I change the data source to an spreadsheet owc:
Me.AxChartSpace1.DataSource = CType(Me.AxSpreadsheet1.GetOcx()
msdatasrc.DataSource)
oSer.SetData(OWC11.ChartDimensionsEnum.chDimSeriesNames, -1
"MySeries")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimCategories, 0
"A1:A26")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimValues, 0
"B1:B26")
Those events don't get called anymore.
Anyone can tell me why?
Thanks a lot.
MARI