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
Buldozer
Level II

Refresh chart in the same place

Hi, i have a several charts created in a new window, i want to have a "refresh button" that will refresh specific chart in the same place (if for example i filtered some data), for now all i got that it adds the cart under the original and if i delete the original before it gives an error 

3 REPLIES 3
txnelson
Super User

Re: Refresh chart in the same place

Here is an example that my give you an approach you can use

names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

nw = new window("Example",
	vlb =vlist box(
	),
	buttonbox("refresh",
		biv << delete;
		wait(2);// the wait() is just to show that the chart has been deleted before the refresh
		vlb<<append(biv = dt << bivariate(x(:height),y(:weight)));
	)
);
vlb<<append(biv = dt << bivariate(x(:height),y(:weight)));
Jim
Buldozer
Level II

Re: Refresh chart in the same place

Thanks!!! working great!

Craige_Hales
Super User

Re: Refresh chart in the same place

Maybe Auto Recalc will work for you; the graph updates as the data changes.

red triangle->Redo->AutoRecalcred triangle->Redo->AutoRecalc

Craige

Recommended Articles