|
Liked list instead of DoubleArray |
Posted by kingMohd on Feb-27-2011 22:54 |
|
Hi
Is that possible in realchart to use linked list instead of an array, in other word, the dynamic allocation which do not enforce the user with number of samples. |
Re: Liked list instead of DoubleArray |
Posted by Peter Kwan on Mar-01-2011 02:49 |
|
Hi kingMohd,
You can use any data structure you like to store your data, including a linked list.
However, before your call addDataSet, please copy your data from your linked list to an array first, then pass the array to ChartDirector in addDataSet.
Every developer can use a different data structure. However, it is not possible for ChartDirector to be designed so that it can accept all possible data structures that used by all developers. So ChartDirector is designed to use only a general and simple data structure (an array). It is expected the developers will convert their data structures to the array format and pass the arrays to ChartDirector.
Hope this can help.
Regards
Peter Kwan |
|