ChartSpace.Constants in C#

C

Chris Chiu

Hi,

I'm going to use C# and OWC to create the chart in ASP.NET.
I try to use below code to retrive the constant value from
"ChartSpace.Constants".

......
......

Owc11.ChartSpace loChartSpace = new Owc11.ChartSpace();
Owc11.ChChart loGraph = loChartSpace.Charts.Add(0);
......
......

loGraph.SeriesCollection[0].SetData(loChartSpace.Constants.chDimCategories,
-1, laLabels);

loGraph.SeriesCollection[0].SetData(loChartSpace.Constants.chDimValues,
-1, laData);
......
.....

But it return following error at compile time:

"object' does not contain a definition for 'chDimCategories".

Do anyone know how to solve the problem? Thanks in advance

Chris
 
A

Alvin Bruney [MVP]

use this
OWC11.ChartDimensionsEnum.chDimCategories

it's now part of the chartdimensionsenum


--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Hi,
I'm going to use C# and OWC to create the chart in ASP.NET.
I try to use below code to retrive the constant value from "ChartSpace.Constants".

......
......

Owc11.ChartSpace loChartSpace = new Owc11.ChartSpace();
Owc11.ChChart loGraph = loChartSpace.Charts.Add(0);
......
......
loGraph.SeriesCollection[0].SetData(loChartSpace.Constants.chDimCategories, -1, laLabels);
loGraph.SeriesCollection[0].SetData(loChartSpace.Constants.chDimValues, -1, laData);
......
.....

But it return following error at compile time:

"object' does not contain a definition for 'chDimCategories".

Do anyone know how to solve the problem? Thanks in advance

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top