Box plot automatic scales problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Michal Blazejczyk
Newbie
Newbie
Posts: 64
Joined: Fri Jun 16, 2006 12:00 am

Box plot automatic scales problem

Post by Michal Blazejczyk » Fri Jun 30, 2006 7:28 pm

Hi,

I have just discovered an annoying bug. My application displays several box plots using UseCustomValues=true. Here's sample code:

Code: Select all

            box1.Clear();
            box1.UseCustomValues = true;
            box1.Add( new double[] {9.1, 9.4, 10.1} );  // outliers only
            
            box1.Median = 5.0;
            box1.Quartile1 = 2.4;
            box1.Quartile3 = 6.1;
            box1.InnerFence1 = 2.1;
            box1.InnerFence3 = 6.8;
            box1.OuterFence1 = 1.5;
            box1.OuterFence3 = 7.5;
            box1.AdjacentPoint1 = 1.0;
            box1.AdjacentPoint3 = 8.0;
Problem: The automatic scaling doesn't take into account the box location, only the outliers! This means that if the outliers lie only on one side of the box, the box will not be visible - it will be outside of the default axis range.

I have just spent a few hours hunting this one down :-)

Best,
Michal Blazejczyk
Best,
Michal Blazejczyk
Lead Programmer
Genome Quebec

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

Post by Narcís » Mon Jul 03, 2006 7:51 am

Hi Michal,

Thanks for reporting.

I could reproduce the issue here and added it (TF02011538) to our defect list to be fixed for 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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Aug 10, 2006 5:57 pm

Yes, the problem is I forgot to override the MaxYValue and MinYValue methods (for box, for horizontalbox the MaxXValue and MinYValue) in case custom values are used. I've just fixed this ... the fix will be included in next maintenance release.
Marjan Slatinek,
http://www.steema.com

eda2013
Newbie
Newbie
Posts: 2
Joined: Thu Sep 05, 2013 12:00 am

Re: Box plot automatic scales problem

Post by eda2013 » Thu Sep 12, 2013 12:47 am

Dear sir,

This issue still not been fixed for new release.
Do you have a workaround until you fix this bug?

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

Re: Box plot automatic scales problem

Post by Narcís » Thu Sep 12, 2013 8:30 am

Hi eda2013,

The issue was fixed back in August 2006. I have checked it works fine for me here using latest TeeChart for .NET release, build 4.1.2013.07300. Which TeeChart version are you using?
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

eda2013
Newbie
Newbie
Posts: 2
Joined: Thu Sep 05, 2013 12:00 am

Re: Box plot automatic scales problem

Post by eda2013 » Thu Sep 12, 2013 10:03 am

Hi, Narcis

We use TeeChartNET2013_4.1.2013.07300 with Visual Studio 2008 and the UseCustomValues is false.
The raw data is below,but this box chart is wrong.
You can see the value of median or AdjacentPoint in box.

Index Samples
0 93.53
1 99.02
2 99.409
3 89.953
4 99.44
5 95.93

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

Re: Box plot automatic scales problem

Post by Narcís » Thu Sep 12, 2013 2:02 pm

Hi eda2013,

Ok, thanks for the info. I have added the defect to the bug list (TF02016719) to be fixed for 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

Post Reply