I tried adding several arrays to a series using .Add(array, array) but instead of appending the array data to whatever is already in the series it appears that only the last array added to the series is retained. This is inconsistant with how Add works in general. Could someone verify this or explain the difference in behavior?
Thanks
series.Add array problem
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Gp,
This is because AddArray is expected to populate the series at once. I'm afraid the only way to be able to do this at the moment is to concatenate your arrays together before adding them into TeeChart (an alternative would be to iterate through the new array and at it to the TChart via AddXY()). As you can see at the moment, using AddArray replaces the original array with the new array. There is a entry on the wish-list for TeeChart Pro to do some sort of internal array concatenation to enable consecutive arrays to be added into TeeChart and an implementation of this wish will be considered for inclusion in a future version.
This is because AddArray is expected to populate the series at once. I'm afraid the only way to be able to do this at the moment is to concatenate your arrays together before adding them into TeeChart (an alternative would be to iterate through the new array and at it to the TChart via AddXY()). As you can see at the moment, using AddArray replaces the original array with the new array. There is a entry on the wish-list for TeeChart Pro to do some sort of internal array concatenation to enable consecutive arrays to be added into TeeChart and an implementation of this wish will be considered for inclusion in a future version.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |