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
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