S
ss0133
I have seen this question in the archive but there was no answer. I
anyone out there knows the answer for this, could you please help m
out.
I am trying to draw two series to a chart. The second series instea
of picking up the points from the category axis from the first series
places the new values at the end of the first series and draws it t
the right.
My draw chart method looks as follows with a different series dat
passed to the method every time.
{
OWC10.ChChart objChart = chartSpace.Charts[graphIndex];
int seriesIndex = objChart.SeriesCollection.Count;
OWC10.ChSeries objSeries =
objChart.SeriesCollection.Add(seriesIndex);
//set the data to the series
//Give the name of the series
objChart.SeriesCollection[seriesIndex].SetData
OWC10.ChartDimensionsEnum.chDimSeriesNames,(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral
seriesName
);
//Give the Categories
objChart.SeriesCollection[seriesIndex].SetData(OWC10.ChartDimensionsEnum.chDimCategories
(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, categoryData);
//Give The values
objChart.SeriesCollection[seriesIndex].SetData(OWC10.ChartDimensionsEnum.chDimValues
(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral,valueData
);
}
Could someone tell me, what am I doing wrong.
Thanks in advance
S
anyone out there knows the answer for this, could you please help m
out.
I am trying to draw two series to a chart. The second series instea
of picking up the points from the category axis from the first series
places the new values at the end of the first series and draws it t
the right.
My draw chart method looks as follows with a different series dat
passed to the method every time.
{
OWC10.ChChart objChart = chartSpace.Charts[graphIndex];
int seriesIndex = objChart.SeriesCollection.Count;
OWC10.ChSeries objSeries =
objChart.SeriesCollection.Add(seriesIndex);
//set the data to the series
//Give the name of the series
objChart.SeriesCollection[seriesIndex].SetData
OWC10.ChartDimensionsEnum.chDimSeriesNames,(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral
seriesName
);
//Give the Categories
objChart.SeriesCollection[seriesIndex].SetData(OWC10.ChartDimensionsEnum.chDimCategories
(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, categoryData);
//Give The values
objChart.SeriesCollection[seriesIndex].SetData(OWC10.ChartDimensionsEnum.chDimValues
(int)OWC10.ChartSpecialDataSourcesEnum.chDataLiteral,valueData
);
}
Could someone tell me, what am I doing wrong.
Thanks in advance
S