Page 1 of 1

AddArray Question

Posted: Fri May 18, 2007 12:50 pm
by 9528728
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?

Posted: Fri May 18, 2007 1:06 pm
by narcis
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.