Page 1 of 1

Crazy Drawn Series using Add

Posted: Tue May 23, 2006 12:51 am
by 9637574
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?

Posted: Tue May 23, 2006 8:40 am
by narcis
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.

Posted: Tue May 23, 2006 1:46 pm
by 9637574
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?