Page 1 of 1

Function Series show no available source series

Posted: Wed Aug 03, 2005 3:52 pm
by 9340689
Hi:

I have a chart component (TMyChart = class(TCustomDBChart)) and CDS (TMyDataset = class(TClientDataSet)) on a form. At runtime I can add series based on the TMyDataset to TMyChart. I can also add function type series to TMyChart. In other words, all is well.

Now when I close the form, I stream out TMyChart. When the form is re-opened, the TMyChart chart is streamed back in, the TMyDataset is reloaded and the TMyDataset based series in the chart are redrawn. But, the function type series are not redrawn. The series are defined, but the series source for the function series is blank, and no series are shown as being available (even though the TMyDataset series were 'successfully' streamed in).

Any ideas would be appreciated.

Thanks,
Mark

Posted: Thu Aug 04, 2005 9:56 am
by Pep
Hi Mark,

which teeChart pro version are you using ?
Could you please give me the code you're using to reproduce it ?

Posted: Thu Aug 04, 2005 5:08 pm
by 9340689
Hi:

I have TeeChart Pro 7.04.

I have a simple project that reproduces the problem. I have determined that the problem occurs when I use a customized TDBChart. On my form I create the chart at runtime because I override IsValidDataSource to allow only datasets on the current form as series sources:

chart := TExpChart.Create(self);
chart.Parent := self;

if I change my code to

chart := TDBChart.Create(self);
chart.Parent := self;

everything works (except now the user can use datsets that might not be available later).

I have a smaple projetc I can send if you let me know the best way to send.

Thanks,
Mark

Posted: Fri Aug 05, 2005 1:27 am
by Pep
Hi Mark,

yes please, send me it directly to pep@steema.com and I'll take a look.