Problem with error series(LR style) having multiple points

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chandran
Newbie
Newbie
Posts: 15
Joined: Thu Feb 07, 2013 12:00 am

Problem with error series(LR style) having multiple points

Post by Chandran » Wed Jan 22, 2014 2:39 pm

We are using tee chart for .net (Version 4.1.2013.7302)

We are facing one problem while drawing error series with left-right style having multiple points in it.

Let’s consider following example:
Say we have error series with 5 points values as follows
X = {0,1,2,3,4}
Bar = {50,80,20,60,40}
Std. Error = {10,20,8,30,5}

When we plot the above error series data with error style as left and right; error series is set invisible if its bar value > bottom axis maximum value.
This problem is only observed for error series with left and right style and that too having multiple points. If there is single point data per error series, it is visible perfectly, irrespective of any value of bar and bottom axis maximum.

To illustrate more -
Consider first set of data from the above values { X = 0 , Bar = 50 , Std. Err. = 10 }.
If error series with left-right error style is drawn with this data, it is perfectly visible till x axis max value > 50.
If we try to set bottom axis max value to anything less than 50, series/line corresponding to this point is set invisible.

This isn’t the case with error with top-bottom style. In this case, even if left axis max value is lesser than that of bar value, series is perfectly visible.

We tried to find out reason behind it but haven’t found any. Also, we traced earlier versions, but in vain.
Please let us know is this a known issue. Kindly suggest if there is any way to avoid such behavior.

TIA,
Chandran

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Christopher » Wed Jan 22, 2014 4:04 pm

Hello Chandran,

Please find here:
Form1.zip
(3.49 KiB) Downloaded 608 times
Form1.zip, which is a Windows Form containing a simple example for testing the Error series. I have added the data you mentioned to it and have adjusted the bottom axes minimum and maximum, as you can see.

Is this a satisfactory solution to your problem?
Best Regards,
Christopher Ireland / 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

Chandran
Newbie
Newbie
Posts: 15
Joined: Thu Feb 07, 2013 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Chandran » Thu Jan 23, 2014 6:01 am

Thank Christopher.
But the solution doesn't address the problem we are facing.

When you run the application, every point from error series is drawn correctly.
But if we want to change bottom axis maximum to zero, which is valid value for all points in series, just one point from the series is drawn and others are set invisible in this case.

Please check uploaded modified form with provision to set maximum value of bottom axis.
Try setting zero as bottom axis max using this application (enter 0 in the text box and press OK). It will result into the above mentioned problem.


Thanks,
Chandran
Attachments
WindowsFormsApplication2.zip
Test application
(15.65 KiB) Downloaded 610 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Christopher » Thu Jan 23, 2014 12:11 pm

Hello Chandran,

Okay, thank you, I think I can see what the problem is now.

Can you please try this TeeChart.dll (password protected TeeChart2.zip) to see if it resolves the issue?
Best Regards,
Christopher Ireland / 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

Chandran
Newbie
Newbie
Posts: 15
Joined: Thu Feb 07, 2013 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Chandran » Fri Jan 24, 2014 8:58 am

Thanks Christopher, it worked but still has one issue.
In the same application, instead of setting max value , if we try to set min value for bottom axis, same problem persists.

Could you please share the updated assembly for the same?

TIA,
Chandran

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Christopher » Fri Jan 24, 2014 1:05 pm

Chandran wrote: In the same application, instead of setting max value , if we try to set min value for bottom axis, same problem persists.

Could you please share the updated assembly for the same?
Apologies for the delay in getting these algorithms right, and many thanks for your collaboration and patience. Please try TeeChart.dll downloadable from here (TeeChart3.zip, password protected).
Best Regards,
Christopher Ireland / 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

Chandran
Newbie
Newbie
Posts: 15
Joined: Thu Feb 07, 2013 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Chandran » Fri Jan 24, 2014 2:02 pm

This time it worked well. Thanks Christopher once again for the support.

Was it really bug? If yes, would it be available in upcoming release?
Please confirm.

Regards,
Chandran

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Problem with error series(LR style) having multiple points

Post by Christopher » Fri Jan 24, 2014 2:06 pm

Chandran wrote:This time it worked well. Thanks Christopher once again for the support.
I'm pleased to hear it. Don't hesitate to let us know if you have any further problems.
Chandran wrote: Was it really bug? If yes, would it be available in upcoming release?
Please confirm.
Yes, it was a bug. I've had to change the source code in several places for the circumstances that weren't considered when the code was written. These fixes will be in the upcoming maintenance release, yes.
Best Regards,
Christopher Ireland / 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

Post Reply