Hi,
I know if i need to draw a NaN data in TeeChart i have to make it's color Transparent or i have to call SetNull for that perticular index.
But if by mistake i have missed that perticular call of SetNull (or making it transparent) then whole application is crashing.
Why it should crash the application?
If there is an exception then it should not draw that point or it should just return from that perticular area.
I dont have the source code so i dont know how it has been handled but for sure it should not crash the application.
Can anyone suggest anything?
Regards,
Avijit
NaN handling issue
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: NaN handling issue
Hi Avijit,
The problem here might be that TeeChart does nothing special to handle NaN values. Actually, null values in a database or Double.NaN values are not supported by TeeChart and must be customly handled as almost everybody marks them in a different way and also everybody wants to treat them in a different way. So you should loop through your datasource and when a null/nan value is identified, you should manually add it to the series as you have already mentioned.
The problem here might be that TeeChart does nothing special to handle NaN values. Actually, null values in a database or Double.NaN values are not supported by TeeChart and must be customly handled as almost everybody marks them in a different way and also everybody wants to treat them in a different way. So you should loop through your datasource and when a null/nan value is identified, you should manually add it to the series as you have already mentioned.
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 |
Re: NaN handling issue
I understand that. But what i am asking is - if somehow anyone missed doing it then TeeChart should have the fail proof machanism to handle it instead of crashing the appication.
Regards,
Avijit
Regards,
Avijit
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: NaN handling issue
Hi Avijit,
Ok, I understand your point. In that case, which do you think default behaviour should be?
Thanks for your feedback.
Ok, I understand your point. In that case, which do you think default behaviour should be?
Thanks for your feedback.
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 |
Re: NaN handling issue
Hello Narcís,
For me anything is OK as long as my application is not crashing.
If my application does not show any graph, that is also fine.
But one thing for sure is required - informing the developer that he/she did something wrong. I am not sure how that can be done.
But for now anything is OK as long as my application is not crashing
Regards,
Avijit
For me anything is OK as long as my application is not crashing.
If my application does not show any graph, that is also fine.
But one thing for sure is required - informing the developer that he/she did something wrong. I am not sure how that can be done.
But for now anything is OK as long as my application is not crashing
Regards,
Avijit
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: NaN handling issue
Hi Avijit,
Ok, I have added your request to the wish-list (TF02014862) to be considered for inclusion in future releases.
Ok, I have added your request to the wish-list (TF02014862) to be considered for inclusion in future releases.
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 |
Re: NaN handling issue
Thanks for considering...
Regards,
Avijit
Regards,
Avijit