AddArray Question

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jeroen
Newbie
Newbie
Posts: 4
Joined: Wed Oct 05, 2005 4:00 am

AddArray Question

Post by jeroen » Fri May 18, 2007 12:50 pm

Hello

We are developing an application to view physiological data. Because of the large amount of data we read samples from disk in buffers with typically 20-200 samples (XY points). I tried to use AddArray (following the example code) repeatedly in the same call to update the Chart but it seems that only the last AddArray is displayed. Moreover, if I use the same COleSafeArrays XValues, YValues to update two or more series in chart sequentlially, the last point of the first series is connected to the first point of the second series, which is obviously not what I want. I use now AddXY but hope to use AddArray again. Any Ideas?

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

Post by Narcís » Fri May 18, 2007 1:06 pm

Hello jeroen,
We are developing an application to view physiological data. Because of the large amount of data we read samples from disk in buffers with typically 20-200 samples (XY points). I tried to use AddArray (following the example code) repeatedly in the same call to update the Chart but it seems that only the last AddArray is displayed.


Yes, AddArray method removes existing series points and replaces them for the ones in supplied arrays. If you want to concatenate arrays you'll have to do it manually before suppling the arrays to the series.
Moreover, if I use the same COleSafeArrays XValues, YValues to update two or more series in chart sequentlially, the last point of the first series is connected to the first point of the second series, which is obviously not what I want.
I'm not sure about what are you doing here. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

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

Post Reply