Office Chart doubt

V

Vinodh Kumar P

Hi,
I try to create a chart using Office Chart Component 9.
I set the type of the WCChart object as chChartTypeScatterLine,
WCSeries object1 as
chChartTypeScatterSmoothLineMarkers.
WCSeries object2 as
chChartTypeScatterSmoothLine.

But the type applied to series 2 is always set to series object 1.

void CImageCalibChartCtrl::ChangeType()
{
CWCCharts aCharts = myChartCollection.GetCharts();
CWCChart aChart = aCharts.GetItem(COleVariant((short)0));

aChart.Select();
aChart.GetSeriesCollection().GetItem(COleVariant((short)0)).Select();
aChart.GetSeriesCollection().GetItem(COleVariant((short)0)).SetType(22);
aChart.GetSeriesCollection().GetItem(COleVariant((short)1)).Select();
aChart.GetSeriesCollection().GetItem(COleVariant((short)1)).SetType(23);
}

I do not get any effect of calling Select() method.


Thanks and Regards,
Vinodh Kumar P
 

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