Page 1 of 1

Waterfall series data number limit

Posted: Tue Sep 16, 2008 2:18 am
by 9529132
Hi,

I tried to plot a waterall series and I set the number of data to be 20000, it can be plotted correctly, but when I changed the data number to be 20010, access violation occured. After some tries, I found the data limit seems to be 20001. Is there any way I can plot more than 2001 data number in a waterfall series? Here is my code where m_nPtNum is the number of data

m_chart1.AddSeries(scWaterfall);
m_chart1.Series(0).GetAsWaterfall().GetPen().SetColor(RGB(0,0,255));
m_chart1.Series(0).GetAsWaterfall().SetWireFrame(TRUE);
m_chart1.Series(0).GetAsWaterfall().GetWaterLines().SetVisible(FALSE);
m_chart1.Series(0).GetAsWaterfall().SetIrregularGrid(TRUE);

COleSafeArray saXValues;
COleSafeArray saYValues;
COleSafeArray saZValues;
saXValues.CreateOneDim(VT_R8,m_nPtNum,m_fXValues);
saYValues.CreateOneDim(VT_R8,m_nPtNum,m_fYValues);
saZValues.CreateOneDim(VT_R8,m_nPtNum,m_fZValues);
m_chart1.Series(index).GetAsWaterfall().AddArrayXYZ(saXValues,saYValues,saZValues);


David

Posted: Tue Sep 16, 2008 7:41 am
by narcis
Hi David,

At the present moment, the limit of cells for such series is 20000. This could be increased provided the machines where such grids are used support handling this ammount of data as this kind of series are very slow when they are so big. Anyway, I'll add your request to the list to be considered for inclusion in next releases.

Posted: Tue Jun 02, 2009 1:20 pm
by narcis
Hi David,

I've been investigating the issue further now. As I told you before, we could certainly increase the max number of cells allowed to be plotted. However, after doing some tests here I found waterfall series can plot many more than 20000 points, for example, the code below works fine for me here with latest TeeChart Pro v8 ActiveX maintenance release available.

Code: Select all

	m_Chart1.AddSeries(scWaterfall);
	
	for	(int x=1; x<200; x++)
		for (int z=1; z<1000; z++)
			m_Chart1.Series(0).GetAsWaterfall().AddXYZ(x, 5, z, "", clTeeColor);
However, plotting such series styles with a very big number of points takes a lot of time to render them.