We are currently in the process of moving our legacy application from C++ Builder 5 to C++ Builder XE2.
The program internally stores a lot of data in simple C++ arrays. These arrays need to be visualized by TeeChart.
Since the arrays are rather big (>60.000 values per array) we don't want to make duplicates for performance reasons.
In the version of TeeChart distributed with C++ Builder 5 we solved the issue by subclassing the TChartValueList (making it work on our internal array) and replacing the one that was present in the Series like so:
Code: Select all
TMyList* newlist = new TMyList(Aseries,"X");
Aseries->ReplaceList(Aseries->XValues,newlist);
So my next question is rather obvious: what can I do to solve this problem? I'd rather not change the internal representation of the data as this would cause a lot of code rewriting.
TIA