change Teechartv4 DBchart series yvalue at runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jangbu
Newbie
Newbie
Posts: 13
Joined: Tue Jul 03, 2007 12:00 am
Contact:

change Teechartv4 DBchart series yvalue at runtime

Post by jangbu » Fri May 31, 2013 11:47 am

Hi,

how to change yvalue of dbchart series at runtime? (Delphi 6)
Datasource is TQuery.

many thanks
jangbu

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: change Teechartv4 DBchart series yvalue at runtime

Post by Yeray » Fri May 31, 2013 2:40 pm

Hi,

You can modify your values directly in the database, before loading the values to the chart.
Or you can load the values to the chart and then loop the Series YValues array to modify them.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jangbu
Newbie
Newbie
Posts: 13
Joined: Tue Jul 03, 2007 12:00 am
Contact:

Re: change Teechartv4 DBchart series yvalue at runtime

Post by jangbu » Fri May 31, 2013 4:08 pm

Hi Yeray,

just tested this code, seems it is what i'm looking for.

DBChart1.Visible := false;
Series1.Active := false;
Series1.XLabelsSource := 'abc';
Series1.YValues.ValueSource := 'abc';
Series1.Active := true;
DBChart1.Visible := true;

regards
jangu

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: change Teechartv4 DBchart series yvalue at runtime

Post by Yeray » Mon Jun 03, 2013 9:01 am

Hi Jangu,

I'm glad to hear you found how to solve it :)
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply