Add multiple data points in the middle of series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Xia
Newbie
Newbie
Posts: 47
Joined: Tue Oct 16, 2007 12:00 am

Add multiple data points in the middle of series

Post by Xia » Mon Mar 10, 2008 2:38 pm

Hi,

I want to add a numbe of data points (or a section of data) in the middle of the data series. Is there a function similar to the Delete(ValueIndex1, ValueIndex2) to fast add multiple points in the middle of the data series by a single call?

Regards

Xia

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

Post by Narcís » Mon Mar 10, 2008 2:41 pm

Hi Xia,

I'm afraid not, you'll need to add them individually.
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

Xia
Newbie
Newbie
Posts: 47
Joined: Tue Oct 16, 2007 12:00 am

Post by Xia » Mon Mar 10, 2008 2:54 pm

Hi Narcis,

So I have to shift the data series from the insert point to the end of the data series (TDataSeries->Count()) by a numbe of points to be inserted, and then call AddXY() to add individual data. This could be quite slow processing when having a large amount of data and data to be inserted at the beginning. Would it be fast to prepare the data in a separate data array and then use AddArray() function?

Thanks.

Xia

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

Post by Narcís » Mon Mar 10, 2008 3:22 pm

Hi Xia,

You may not need to shift data, just use AddXY method for add values where you want and then use FillSequence method as described here.

Hope this helps!
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