cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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