Page 1 of 1

How do you Programatically Add a 3d Point to a 3d Line serie

Posted: Wed Sep 29, 2010 1:44 am
by 13049545
I looked in the sample code and only find the FillSampleValues method used.
I'm looking for a Series.AddXYZ or something like that.

Thanks.

Re: How do you Programatically Add a 3d Point to a 3d Line serie

Posted: Wed Sep 29, 2010 11:32 am
by narcis
Hi jzarech,

There are a number of overloads for Add method one of them admitting 3 double coordinates: x, y and z, for example:

Code: Select all

            Steema.TeeChart.Styles.Points3D points3D1 = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);

            Random y = new Random();

            for (int x = 0; x < 10; x++)
            {
                for (int z = 0; z < 10; z++)
                {
                    points3D1.Add(x, y.Next(), z);
                }
            }

Re: How do you Programatically Add a 3d Point to a 3d Line serie

Posted: Wed Sep 29, 2010 2:29 pm
by 13049545
Thanks that was fast! Been a TeeChart customer since the beginning and you get better and better every year! Keep up the good work.