OWC11 Chart Series data

T

Thatheau Raj. S

Hi All,

I have a peculiar problem. we are using C# to generate a Chart using OWC11.

we are setting the series data using tab serparated values - category and
Dim Values.

In the series data the lastpoint is not sticking to the specific category,
rather it defaults to the first category.

What could be the problem? Any hints will be highly appreciated.

Following is the code fragment:
.........
string ColumnValues = null;
string Graphvalues =null;
..................

objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimCategories,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
ColumnValues);
objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimValues,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
Graphvalues);
 
T

Thatheau Raj. S

Tried adding a tab delimiter ( both to category and DimValues) it does not
help.

Any other suggestions?

Thanks

Alvin Bruney said:
make your last value a tab delimiter and see if that helps

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Thatheau Raj. S said:
Hi All,

I have a peculiar problem. we are using C# to generate a Chart using
OWC11.

we are setting the series data using tab serparated values - category and
Dim Values.

In the series data the lastpoint is not sticking to the specific category,
rather it defaults to the first category.

What could be the problem? Any hints will be highly appreciated.

Following is the code fragment:
.........
string ColumnValues = null;
string Graphvalues =null;
..................

objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimCategories,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
ColumnValues);
objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimValues,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
Graphvalues);
 
T

Thatheau Raj. S

It works. There was a bug in the code.

The solution was tried as explained in the following article
http://support.microsoft.com/kb/q286317/

But when trying this out in c#, following changes are to be made.
1. Prefix and suffix a '\t' to the category value string of the Place
holder axis.

Other things remain the same.

thanks
Raj

Thatheau Raj. S said:
Tried adding a tab delimiter ( both to category and DimValues) it does not
help.

Any other suggestions?

Thanks

Alvin Bruney said:
make your last value a tab delimiter and see if that helps

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Thatheau Raj. S said:
Hi All,

I have a peculiar problem. we are using C# to generate a Chart using
OWC11.

we are setting the series data using tab serparated values - category and
Dim Values.

In the series data the lastpoint is not sticking to the specific category,
rather it defaults to the first category.

What could be the problem? Any hints will be highly appreciated.

Following is the code fragment:
.........
string ColumnValues = null;
string Graphvalues =null;
..................

objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimCategories,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
ColumnValues);
objChart.SeriesCollection[iSeriescounter].SetData
(Chart.ChartDimensionsEnum.chDimValues,
(int)Chart.ChartSpecialDataSourcesEnum.chDataLiteral,
Graphvalues);
 

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