Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 AutoScalePrimaryChartYRange question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

juilinlee

13 Posts

Posted - 10 Aug 2010 :  13:52:18  Show Profile  Reply with Quote
Dear Support team,

I have a question on auto scale y range functions. Before RebuildChartUsingCurrentData, I did execute following lines.

this.AutoScalePrimaryChartYRange();
this.AutoScaleSecondaryChartYRange();

My sample values are 40,40.1,40.4,40.2,40,40.1 which is between 40 and 41. After the chart comes up, all of the sample values are line up on very top. The primary y range is 0 ~ 45. Does there is any way that can make AutoScalePrimaryChartYRange function works better? Is there anything I need to set before do the AutoScalePrimaryChartYRange? I hope the Y range will be 40 ~ 41 after the chart comes up.

Thanks a lot

Rick

quinncurtis

1586 Posts

Posted - 10 Aug 2010 :  14:15:57  Show Profile  Reply with Quote
The y-axis auto-scale routines have to take into account the control limit alarm lines. I assume these have not been set in your program, therefore they default to 0.0, and this causes the y-axis range to auto-scale from 0.0 to you max sample value, approximately 41 in your case. So either auto-calculate the control limit lines, or set them explicitly.
Go to Top of Page

juilinlee

13 Posts

Posted - 10 Aug 2010 :  14:53:58  Show Profile  Reply with Quote
Dear Support Team,

Actually I did set control limit for this chart, and the Upper Control Limit is 41, and lower control limit is 40. However, the Y range still start from 0. Hope you have some ideas how this happened, or I did something wrong before execute RebuildChartUsingCurrentData function.

Thanks

Rick
Go to Top of Page

quinncurtis

1586 Posts

Posted - 10 Aug 2010 :  15:09:19  Show Profile  Reply with Quote
You also have to set the target value, since that also produces a control line.
Go to Top of Page

juilinlee

13 Posts

Posted - 10 Aug 2010 :  15:51:52  Show Profile  Reply with Quote
Dear Support Team,

I found the issue code, and please advice.

When I add new control limit into a new chart, set the alarmlimit value to 0. (See the red value below) This cause the Y Range start from 0. Do you know any way to go around it?


SPCControlLimitRecord lcl2 = null;
lcl2 = new SPCControlLimitRecord(this.ChartData, SPCControlLimitRecord.SPC_NOTA_LIMIT,0, "LCL", "LCL");


If you would like to receive the sample code and picture of the chart, please let me know.

Thanks

Rick
Go to Top of Page

quinncurtis

1586 Posts

Posted - 10 Aug 2010 :  16:13:16  Show Profile  Reply with Quote
I'm a little confused, since it seems logical that if you set the added control limit to 0.0, the chart will auto-scale to include 0.0 in the range. So it seems that you should set the alarm value of your added control limit to the lower limit of your desired range, 39 or 40 in the example you described.

lcl2 = new SPCControlLimitRecord(this.ChartData, SPCControlLimitRecord.SPC_NOTA_LIMIT,39, "LCL", "LCL");

Go to Top of Page

juilinlee

13 Posts

Posted - 10 Aug 2010 :  18:12:04  Show Profile  Reply with Quote
Dear Support team,

Thanks for your support.

Rick
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07