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
Function Series show no available source series
Hi Mark,
which teeChart pro version are you using ?
Could you please give me the code you're using to reproduce it ?
which teeChart pro version are you using ?
Could you please give me the code you're using to reproduce it ?
Pep Jorge
http://support.steema.com
http://support.steema.com
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
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
Pep Jorge
http://support.steema.com
http://support.steema.com