cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Have your say in shaping JMP's future by participating in the new JMP Wish List Prioritization Survey
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