Quote Originally Posted by plac88 View Post
Hi, you mean multiple charts or multiple lines on one chart?

if you're talking about multiple lines, thats simple, here's an example of multiple lines (2) in one chart:

Code:
        COleSafeArray saRet;

	DWORD numElements[] = {360, 4}; 

	saRet.Create(VT_R8, 2, numElements);

	long index[2] = { 0 , 0 };

	double value = 0;
	double vx = 0;

	for(long i = 0; i < 360; i++)
	{
		// curve 1
		index[1] = 0;

		vx = i;

		saRet.PutElement(index, &vx);

		index[1] = 1;

		value = sin(i * 0.35);

		saRet.PutElement(index, &value);

		// curve 2
		index[1] = 2;

		saRet.PutElement(index, &vx);

		index[1] = 3;

		value = - sin(i * 0.35);

		saRet.PutElement(index, &value);


		index[0]++;
	}

	m_chart.put_ChartData(saRet.Detach());
Cheers

thnx for reply....but m_chart.put_ChartData(saRet.Detach());....put_ChartData is not available in mschart...