NaN handling issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Avijit
Newbie
Newbie
Posts: 72
Joined: Tue Sep 15, 2009 12:00 am

NaN handling issue

Post by Avijit » Thu May 06, 2010 1:20 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: NaN handling issue

Post by Narcís » Thu May 06, 2010 1:48 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Avijit
Newbie
Newbie
Posts: 72
Joined: Tue Sep 15, 2009 12:00 am

Re: NaN handling issue

Post by Avijit » Thu May 06, 2010 2:57 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: NaN handling issue

Post by Narcís » Thu May 06, 2010 3:12 pm

Hi Avijit,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Avijit
Newbie
Newbie
Posts: 72
Joined: Tue Sep 15, 2009 12:00 am

Re: NaN handling issue

Post by Avijit » Fri May 07, 2010 4:45 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: NaN handling issue

Post by Narcís » Fri May 07, 2010 7:28 am

Hi Avijit,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Avijit
Newbie
Newbie
Posts: 72
Joined: Tue Sep 15, 2009 12:00 am

Re: NaN handling issue

Post by Avijit » Fri May 07, 2010 8:29 am

Thanks for considering...

Regards,
Avijit

Post Reply