Hi Googigg,
It seems the dataSeries is created by your own code, which is probably used to keep a reference to the data arrays used to plot the chart. I remembered a few years ago, I might have posted a short example in the ChartDirector forum using this method.
The reference to the data array is correct when it is added to your dataSeries. However, if you use it later, the data array may have been changed, so it is no longer at its original value. If you intend to use the data array later, instead of adding a reference to the data array, please copy the data array (eg. using Object.clone to make a copy of the array). In this way, the array will still be containing the same data when you use it.
Hope this can help.
Regards
Peter Kwan |