TColorGridSeries Clear problem
Posted: Wed May 26, 2004 8:59 pm
Here's another question:
I can't clear the data from TColorGridSeries by writing a->Clear(); It won't completely remove all the data. It does give me a clean chart, but if I add data, it'll show some old data point. So if I keep adding data after Clear(), I'll get a colortable overflow error eventually.
But at runtime if I first change the series to TPoint3DSeries via ChangeAllSeriesType, and do Clear() and change it back to TColorGridSeries, then I get true clean chart. Weird? But I still get that color table overflow if I repeat doing this.
I might be missing something here. I notice there's a ClearPalete() function, but don't know if it's related.
I searched the newsgroup, and found someone had the same problem but without the solution.
http://216.101.185.148/scripts/isapi.dl ... le=4519540
Fang
I can't clear the data from TColorGridSeries by writing a->Clear(); It won't completely remove all the data. It does give me a clean chart, but if I add data, it'll show some old data point. So if I keep adding data after Clear(), I'll get a colortable overflow error eventually.
But at runtime if I first change the series to TPoint3DSeries via ChangeAllSeriesType, and do Clear() and change it back to TColorGridSeries, then I get true clean chart. Weird? But I still get that color table overflow if I repeat doing this.
I might be missing something here. I notice there's a ClearPalete() function, but don't know if it's related.
I searched the newsgroup, and found someone had the same problem but without the solution.
http://216.101.185.148/scripts/isapi.dl ... le=4519540
Fang