J
Jim Hubbard
I and trying to learn the OCW10 Chart control, but I have come upon a
problem that stumps me.
Here is part of my code....
------------------------------------------------
CSpace.Charts.Add (0)
CSpace.Charts(0).SetData chDimSeriesNames, chDataLiteral, arrRowHeaders
CSpace.Charts(0).SetData chDimCategories, chDataLiteral, ColHeaders
For Counter = 0 To UBound(ColHeaders)
CSpace.Charts(0).SetData chDimValues, chDataLiteral,
arrDatasets(Counter)
Next Counter
------------------------------
But on the line within my For..Next loop I keep getting an error that
reads...
"Run-time error '-214702-4809 (80070057)';
In Chart.SetData, literal data may only be to specify
chDimSeriesNames or chDimCategories."
What does this mean? Can I not use literal data to specify the values?
I've seen lots of code posted that shows this as being the proper way to
fill a chart control.
Did I miss something?
Jim
problem that stumps me.
Here is part of my code....
------------------------------------------------
CSpace.Charts.Add (0)
CSpace.Charts(0).SetData chDimSeriesNames, chDataLiteral, arrRowHeaders
CSpace.Charts(0).SetData chDimCategories, chDataLiteral, ColHeaders
For Counter = 0 To UBound(ColHeaders)
CSpace.Charts(0).SetData chDimValues, chDataLiteral,
arrDatasets(Counter)
Next Counter
------------------------------
But on the line within my For..Next loop I keep getting an error that
reads...
"Run-time error '-214702-4809 (80070057)';
In Chart.SetData, literal data may only be to specify
chDimSeriesNames or chDimCategories."
What does this mean? Can I not use literal data to specify the values?
I've seen lots of code posted that shows this as being the proper way to
fill a chart control.
Did I miss something?
Jim