Waterfall series data number limit

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Waterfall series data number limit

Post by David » Tue Sep 16, 2008 2:18 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Sep 16, 2008 7:41 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 02, 2009 1:20 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply