Posted: Wed Jan 07, 2004 1:25 pm
Hello John,
There is no XYZ array overload for Add in the current release. We have added it for inclusion in the next maintenence update.
Syntax of use will be (adding some acceptable sample data) as follows. The release that includes this overload for Add will be available during January.
For an example of sourcing XYZ data from a DataAdapter see the main TeeChart demo under:
'All features':'Datasets':'Using the Designtime Editor'
I think if you've seen any documented reference to TBitmap in this context it may be misleading. Creating a bitmap of a Chart may sometimes help track down a problem if the code causing the problem is loaded in a Form_load before the first Chart paint.
Regards,
Marc Meumann
Steema Support
There is no XYZ array overload for Add in the current release. We have added it for inclusion in the next maintenence update.
Syntax of use will be (adding some acceptable sample data) as follows. The release that includes this overload for Add will be available during January.
Code: Select all
int axisRange=90;
int numVals=8100; //square axisRange
int[] myXVals = new int[numVals];
int[] myZVals = new int[numVals];
double[] myYVals = new double[numVals];
Random rnd = new Random();
int ctr=0;
for (int x=0;x<axisRange;x++)
{
for (int z=0;z<axisRange;z++)
{
myXVals[ctr]=x;
myYVals[ctr]=0.5*Math.Pow(Math.Cos(x/(axisRange*0.2)),2)+
Math.Pow(Math.Cos(z/(axisRange*0.2)),2)-
Math.Cos(z/(axisRange*0.5));
myZVals[ctr]=z;
ctr++;
}
}
surface1.Add(myXVals,myYVals,myZVals);
'All features':'Datasets':'Using the Designtime Editor'
I think if you've seen any documented reference to TBitmap in this context it may be misleading. Creating a bitmap of a Chart may sometimes help track down a problem if the code causing the problem is loaded in a Form_load before the first Chart paint.
Regards,
Marc Meumann
Steema Support