Page 1 of 1

Peculiar 'Single Record' behavior

Posted: Wed Dec 28, 2005 7:13 pm
by 9235705
Hi,

I have this:

Form1.Series8.YValues.ValueSource := 'mesh201;mesh202;mesh203;mesh204';

but the chart is displaying those 4 field values repeated for every record in the dataset.

If there are 15 records then 60 points are displayed in the chart.

Hoping for an explanation ...

Barry

Posted: Mon Jan 02, 2006 4:47 pm
by Pep
Hi Barry,

I cannot reproduce the problem here.
Which TeeChart Pro version are you using ?
Can you see any difference between your example and the "single record" example included into the Demo features project under : All Features -> Welcome ! -> DataBase Charts -> Single Record ?

Peculiar 'Single Record' behavior

Posted: Sun Jan 08, 2006 8:10 pm
by 9235705
Sorry for the bother, this problem was related to other coding issues...

Thanks,
Barry

Peculiar 'Single Record' behavior

Posted: Mon Jan 16, 2006 2:04 am
by 9235705
I'm afraid this came back to haunt me.

I've created a set of Delphi project files if you want to have a look.

I'm using D2005 with TeeChart Pro v7.05.

Haven't noticed any particular difference between my code and your Single Record Demo code.

I'm sure it's something extremely simple that I'm overlooking.

Barry

Posted: Mon Jan 16, 2006 9:07 am
by narcis
Hi Barry,

Yes please, post them at our public newsgroups: http://www.steema.net/steema.public.attachments.

Thanks in advance.

Peculiar 'Single Record' behavior

Posted: Mon Jan 16, 2006 8:43 pm
by 9235705
The files have been uploaded with the Subject heading:
'Single Record Problem'.

Thanks,
Barry

Posted: Tue Jan 24, 2006 12:33 pm
by Pep
Hi Barry,

it seems that in your project you've selected the "dataset" as DataSource
instead of "Single record", I've just open your project, edit the Chart, go
to the DataSource tab and change it to "Single record", select the recordset , click "Apply" and all seems to work fine, I only see the four fields for each record.

I've posted the modified project into the attachments newsgroup. Could you please test it ?

Peculiar 'Single Record' behavior

Posted: Mon Jan 30, 2006 9:18 pm
by 9235705
Great. Problem cleared up.

I didn't notice that a series in 'single record' mode needs to look at a TDatasource not the clientdataset. I was setting SeriesX.Datasource := cds at run-time.

I assume from all this that 'single record' mode requires a TDatasource component.

Thanks for your attention!
Barry