cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
OneNorthJMP
Level V

Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

When there is outlier data, my chart is always being scaled to mix or max point, which make the chart not visible.

Is that possible to use JSL script to set the Variability Chart Y-axis dynamically based on the parameters USL & LSL limit that already embeded inside the parameters? Please advice. Thanks

15 REPLIES 15
Greenhorn
Level III

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

Hi Jim,

Thanks for your support a lot!

 

I enhanced your code by this, for better looking graphs:

 

owr[i][AxisBox( 2 )] << Min( spec["LSL"] - 0.1 * (spec["USL"] - spec["LSL"]) ) <<
Max( spec["USL"] + 0.1 * (spec["USL"] - spec["LSL"]) ) << Inc( (spec["USL"] - spec["LSL"]) / 10 );
owr[i][AxisBox( 2 )] << Format( Best, 6 );

 

Is it something you also would do?

Or is there a more elegant way?

txnelson
Super User

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

It looks fine to me. I am not exactly sure of other improvements, since I do not know the data.
Jim
Greenhorn
Level III

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

Doing so, I have the feeling, that it takes then longer to display the graphs.

 

Thanks again for your support!

Greenhorn
Level III

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

 
Greenhorn
Level III

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

How to handle "JMP Alert" in case I invoke only one item/ column?

The "for loop" causes this Alert

txnelson
Super User

Re: Auto Scaling of Variability Chart Y-axis based on USL & LSL spec limit

You need to check to see if you have the correct number of columns etc. before the code that causes the Alert, and then add the code necessary to deal with the issue.
Jim