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
Contour / Surface with undefined data
-
- Newbie
- Posts: 1
- Joined: Wed Dec 17, 2003 5:00 am
- Location: Israel
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
If X and Z values are not equidistant then you should use:
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);
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 |
Instructions - How to post in this forum |