Page 1 of 1

NaN handling issue

Posted: Thu May 06, 2010 1:20 pm
by 15654246
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

Re: NaN handling issue

Posted: Thu May 06, 2010 1:48 pm
by narcis
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.

Re: NaN handling issue

Posted: Thu May 06, 2010 2:57 pm
by 15654246
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

Re: NaN handling issue

Posted: Thu May 06, 2010 3:12 pm
by narcis
Hi Avijit,

Ok, I understand your point. In that case, which do you think default behaviour should be?

Thanks for your feedback.

Re: NaN handling issue

Posted: Fri May 07, 2010 4:45 am
by 15654246
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

Re: NaN handling issue

Posted: Fri May 07, 2010 7:28 am
by narcis
Hi Avijit,

Ok, I have added your request to the wish-list (TF02014862) to be considered for inclusion in future releases.

Re: NaN handling issue

Posted: Fri May 07, 2010 8:29 am
by 15654246
Thanks for considering...

Regards,
Avijit