Contour / Surface with undefined data

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
aansnmoran
Newbie
Newbie
Posts: 1
Joined: Wed Dec 17, 2003 5:00 am
Location: Israel

Contour / Surface with undefined data

Post by aansnmoran » Wed Jun 29, 2005 7:54 pm

Hi

I have to display Contout/Surface chart with some undefined data
(number of points in data grid are not defined) for example limited number of points for surface defintion

The problem is that contour/surface chart hides the data around the undefined points and in case of limited and random points TeeChart does not display the surface at all.

Regards,
Arie

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

Post by Narcís » Thu Jun 30, 2005 11:04 am

Hi Arie,

Please notice that ColorGrid and Surface series need to have "matrix" structure, X and Z values defining the rows and columns and Y values determining cells value. It should be able to be populated using a nested for loop as shown below. If you don't want some cells not being visible you can set it to Color.Transparent as shown in the example.

Code: Select all

			for (int x=0; x<10; ++x)
				for (int z=0; z<10; ++z)
					if (x % 2 == 0)
						surface1.Add(x,x*z,z,Color.Transparent);
					else
						surface1.Add(x,x*z,z);
If X and Z values are not equidistant then you should use:

Code: Select all

			surface1.IrregularGrid=true;
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