Page 1 of 1
change Teechartv4 DBchart series yvalue at runtime
Posted: Fri May 31, 2013 11:47 am
by 10045852
Hi,
how to change yvalue of dbchart series at runtime? (Delphi 6)
Datasource is TQuery.
many thanks
jangbu
Re: change Teechartv4 DBchart series yvalue at runtime
Posted: Fri May 31, 2013 2:40 pm
by yeray
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.
Re: change Teechartv4 DBchart series yvalue at runtime
Posted: Fri May 31, 2013 4:08 pm
by 10045852
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
Re: change Teechartv4 DBchart series yvalue at runtime
Posted: Mon Jun 03, 2013 9:01 am
by yeray
Hi Jangu,
I'm glad to hear you found how to solve it