cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

How to get/read chart's y-axis max value?

For a given JMP chart (e.g. Variability chart, Box chart, etc) how to have JSL read in the chart's current y-axis maximum value?

Usually this is contained within SendToReport within a Dispatch (so I know how to change it in JSL).  But I'd like to read in the latest value in the event the user manually changes it by dragging the y-axis up/down with their mouse.

thanks, DJ

1 REPLY 1
txnelson
Super User

Re: How to get/read chart's y-axis max value?

Here is the example given in the Help==>Scripting Index, for Axis Box:

Names Default To Here( 1 );

Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = Bivariate(

      Y( :weight ),

      X( :height ),

      FitLine

);

rbiv = biv << report;

axisbox = rbiv[axis box( 1 )];

axisbox << Get Max;



You can also "Add Graphics Script" and in it check the yorigin and/or xorigin, along with the x and y range to trigger action taken when the axes are changed.

Jim

Recommended Articles