Hi Alex,
I remembered there was a known bug that limits the SurfaceChart to 46341 points for scattered data (as opposed to gridded data). However, it should have been solved for quite sometime. I have just tested with ChartDirector Ver 5.1 (the latest version) using a 251 x 251 grid (total 63001 points), and also tested using 63001 scattered points, and in both cases it works in my machine.
Are you using ChartDirector Ver 5.1 (the latest version) or some older version of ChartDirector? May be you can try if the limit is 46341 points to check if this it the cause of the error.
For your information, the code below is the random (x, y) points I used for testing. (The z values are not random but is a function of (x, y).) The code only works on ChartDirector Ver 5.1 (the RanSeries random series generator is a new class in ChartDirector Ver 5.1). May be you can check your code using random data to see if it works.
Set r = cd.RanSeries(999)
dataX = r.getSeries(251 * 251, -10, 10)
dataY = r.getSeries(251 * 251, -10, 10)
ReDim dataZ(UBound(dataX))
For i = 0 To Ubound(dataX)
x = dataX(i)
y = dataY(i)
dataZ(i) = x * Sin(y) + y * Sin(x)
Next
If the above still does not solve the problem, is it possible to inform me the data you are using? (Try to open a text file, and write three lines Join(dataX, ","), Join(dataY, ",") and Join(dataZ, ",").)
Regards
Peter Kwan |