cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
wut1997
Level I

Auto scaling Y axis of control chart

Hi there, 

 

I'm pretty new to JMP and I currently have a bunch of control charts for a data set I'm analyzing. They're all saved to the data table and every time I run them I have to manually drag the y axis until the range is correct. Is there a way to edit the script so this is done automatically? 

 

I found this post but couldn't figure out how to implement into my scripts: Control Chart Builder y axis scale - can I set dynamically using JSL? 

 

Thanks!

2 REPLIES 2
Thierry_S
Super User

Re: Auto scaling Y axis of control chart

Hi,
It looks like the script captured your manual assignment of the Y axis Max and Min values. In the script, locate the line below the ScaleBox statement and delete the numbers within the parentheses for Min, Max, and Inc (leave the parentheses). Save the new script to the table and now the Control Chart will scale automatically to the data range.
Is this what you were looking for?
Best,
TS
Thierry R. Sornasse
wut1997
Level I

Re: Auto scaling Y axis of control chart

Hi there, 

 

I edited that part of my script but its still resulting in the same thing. 

It ends up looking like this: 

 

wut1997_0-1624296236978.png

 

SendToReport(
		Dispatch(
			{},
			"test",
			ScaleBox,
			{Min(), Max(), Inc(),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"test",
			ScaleBox,
			{Format( "Best", 12 ), Min(),
			Max(), Inc(), Minor Ticks( 1 )}
		)