Hello,
i have dataset with datetime,boolean and other float values and i wish to show the dataset using tdbchart.
Is there a way to intercept (via on...) the painting of the boolean values to set my own values?
for example:
if value=true then xvalue := maxvalue
else xvalue := 0
Best regards
ilde
TDBChart with boolean fields
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ilde,
Yes, you can do something like this:
Yes, you can do something like this:
Code: Select all
for i:=0 to NumValues - 1 do
if YourData[i] then
Series1.Add(maxvalue)
else
Series1.Add(0);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ilde,
To refresh your chart's data when the datasource changes you can call Series.CheckDataSource method. However, TeeChart won't handle boolean fields automatically. So, in that case, you'll have to loop through your dataset and manually process boolean fields.
To refresh your chart's data when the datasource changes you can call Series.CheckDataSource method. However, TeeChart won't handle boolean fields automatically. So, in that case, you'll have to loop through your dataset and manually process boolean fields.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |