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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

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

Post by jzarech » Wed Sep 29, 2010 1:44 am

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.

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

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

Post by Narcís » Wed Sep 29, 2010 11:32 am

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);
                }
            }
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

jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

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

Post by jzarech » Wed Sep 29, 2010 2:29 pm

Thanks that was fast! Been a TeeChart customer since the beginning and you get better and better every year! Keep up the good work.

Post Reply