Crazy Drawn Series using Add

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Bruce37
Newbie
Newbie
Posts: 3
Joined: Thu Jun 30, 2005 4:00 am

Crazy Drawn Series using Add

Post by Bruce37 » Tue May 23, 2006 12:51 am

I have two graphs.
When I use

TGraph1.Series(0).Add(arrayTimeX, arrayDistanceY)

it seems to be a crap shoot if the series will be drawn correctly.

But if I copy that graph to another graph, using

TGraph2.Series(0).AssignValues(TGraph1.Chart.Series(0))

the series is always drawn correctly even though the first graphs series is screwed up.

How do I get the first graph to draw correctly every time?

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

Post by Narcís » Tue May 23, 2006 8:40 am

Hi Bruce37,

Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.
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

Bruce37
Newbie
Newbie
Posts: 3
Joined: Thu Jun 30, 2005 4:00 am

Post by Bruce37 » Tue May 23, 2006 1:46 pm

It turned out my X Values were not sorted. That answers that.

But then why are the X values auto sorted from lowest to highest values when I use the Assign method but not the Add?

Post Reply