cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Georgios_Tsim
Level III

Dynamic y axis range in variability chart

I have the following variability chart and I am implementing that by Parameter

nebs = {};
For Each({pChoice}, parameterChoice,
lub << append(Text Box(pChoice));
lub << append(neb = Number Edit Box(42));
Insert Into(nebs, neb);
);


vals = nebs << get;


varchart = Variability Chart( Y( :Value), X( :Time Point, :Storage Condition, :Level ), Std Dev Chart( 0 ), By( :Parameter ), SendToReport( Dispatch( {"Variability Chart for Value"}, "Variability Chart", FrameBox, {Row Legend( :Label, Color( 1 ), Color Theme( "JMP Default" ), Marker( 0 ), Marker Theme( "" ), Continuous Scale( 0 ), Reverse Scale( 0 ), Excluded Rows( 0 ) )} ) ) )

Then, some lines below in the script I add reference lines in each chart using:

 

obs = varchart << XPath("//OutlineBox[contains(text(), 'Variability Chart for')]");
		count = 0;
		For Each({ob}, obs,
					
			count = count + 1;
			Report( varchart[count] )[AxisBox(1)] << Add Ref Line(vals[count], "Dotted", Red, "AC", 2);				
				);

But some Reference lines can not be observed in the chart because of the scaling of the y axis.

 

Is it possible to change the scaling for each parameter in this loop so that the max of the y axis range is the maximum between the reference line value or the maximum value of the parameter plus 0.1  

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Dynamic y axis range in variability chart

You can send << Min / << Max to axisbox to change it's min / max values.

jthi_0-1725009929014.png

To get the min/max value of column for example by using Col Min/Col Max functions. Optionally you can try to access the marker segment and extract the values from utilizing  << Get Y Values

jthi_1-1725010062706.png

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Dynamic y axis range in variability chart

You can send << Min / << Max to axisbox to change it's min / max values.

jthi_0-1725009929014.png

To get the min/max value of column for example by using Col Min/Col Max functions. Optionally you can try to access the marker segment and extract the values from utilizing  << Get Y Values

jthi_1-1725010062706.png

-Jarmo

Recommended Articles