what exactly are you trying to do. spawning a chart from the owc is easy if
you follow this approach.
ChartSpace objCSpace = new ChartSpaceClass ();
//Add a chart.
ChChart objChart = objCSpace.Charts.Add (0);
//I want a 3D bar chart
objChart.Type = ChartChartTypeEnum.chChartTypeBar3D;
//Add a series to the chart's series collection
objChart.SeriesCollection.Add(0);
//Give the name of the series
objChart.SeriesCollection[0].SetData
(ChartDimensionsEnum.chDimSeriesNames,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, strSeriesName);
//Give the Categories
objChart.SeriesCollection[0].SetData
(ChartDimensionsEnum.chDimCategories,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, strCategory);
//Give The values
objChart.SeriesCollection[0].SetData (ChartDimensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, strValue);
//display the chart
Response.ContentType= "image/gif";
Response.BinaryWrite((byte[])objCSpace.GetPicture("gif",400,400));
Response.End();
The literal values are:
string strCategory = "1,2,3,4,5";
string strValue = "2,3,2,3,6";
string strSeriesName = "3D owc Bar chart";
--
Regards,
Alvin Bruney
[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here...
http://tinyurl.com/27cok
Cooked said:
Thanks Alvin! You obviously have done a lot with the OWC's. However, I
didn't see much specifically related to c# syntax. Can you direct me?
BTW. Interesting web site. Looks like it won't be long before you have
enough to write a book on OWC's yourself.