Peculiar 'Single Record' behavior

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

Peculiar 'Single Record' behavior

Post by bcmiller » Wed Dec 28, 2005 7:13 pm

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

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 02, 2006 4:47 pm

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 ?

bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

Peculiar 'Single Record' behavior

Post by bcmiller » Sun Jan 08, 2006 8:10 pm

Sorry for the bother, this problem was related to other coding issues...

Thanks,
Barry
Last edited by bcmiller on Mon Jan 16, 2006 2:11 am, edited 1 time in total.

bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

Peculiar 'Single Record' behavior

Post by bcmiller » Mon Jan 16, 2006 2:04 am

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
Last edited by bcmiller on Mon Jan 16, 2006 2:10 am, edited 1 time in total.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jan 16, 2006 9:07 am

Hi Barry,

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

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

Peculiar 'Single Record' behavior

Post by bcmiller » Mon Jan 16, 2006 8:43 pm

The files have been uploaded with the Subject heading:
'Single Record Problem'.

Thanks,
Barry

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Jan 24, 2006 12:33 pm

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 ?

bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

Peculiar 'Single Record' behavior

Post by bcmiller » Mon Jan 30, 2006 9:18 pm

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

Post Reply