ColumnClustered OWC11

  • Thread starter Alhambra-Eidos Kiquenet
  • Start date
A

Alhambra-Eidos Kiquenet

Hello misters,

I'll try to make a OWC graphic. I use ASP.net 2.0 + vs 2005 + OWC11.
My code is similar like this:

chartType = OWC11.ChartChartTypeEnum.chChartTypeColumnClustered;

string[] chartCategoriesArr = new string[] { "08/03/2007", "09/03/2007",
"10/03/2007", "11/03/2007" };
string[] chartValuesArr = new string[] { "19400", "15900", "13710", "13010" };

string chartCategoriesStr = String.Join("\t", chartCategoriesArr);
string chartValuesStr = String.Join("\t", chartValuesArr);
....

// Add ChSeries to Chart
OWC11.ChSeries serieOWC = objChart0.SeriesCollection.Add(indiceSeries);

// Categorias

serieOWC.SetData(OWC11.ChartDimensionsEnum.chDimCategories,

Convert.ToInt32(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),
chartCategoriesArr );

// Values
serieOWC.SetData(OWC11.ChartDimensionsEnum.chDimValues,

Convert.ToInt3(OWC11.ChartSpecialDataSourcesEnum.chDataLiteral),
chartValuesStr);

If I use this data (the categories), there are problems with view

{ "08/03/2007", "09/03/2007", "10/03/2007", "11/03/2007" };

The generated graphic is wrong, but if I use the following data is
ok.(attention "ANYTEXT" text)

{ "ANYTEXT08/03/2007", "09/03/2007", "10/03/2007", "11/03/2007" };

I think that if I use the data { "08/03/2007", "09/03/2007", "10/03/2007",
"11/03/2007" }; the OWC11 component handles the categories like dates and
not like string.

Any help for this case, please ? any solution ?

Thanks, regards, greetings...
 
A

Alvin Bruney [MVP]

Google this group to find out how to turn time-scaling off on the category
axis. That will fix your issue.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 

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