cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-747202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERefresh%20chart%20in%20the%20same%20place%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20i%20have%20a%20several%20charts%20created%20in%20a%20new%20window%2C%20i%20want%20to%20have%20a%20%22refresh%20button%22%20that%20will%20refresh%20specific%20chart%20in%20the%20same%20place%20(if%20for%20example%20i%20filtered%20some%20data)%2C%20for%20now%20all%20i%20got%20that%20it%20adds%20the%20cart%20under%20the%20original%20and%20if%20i%20delete%20the%20original%20before%20it%20gives%20an%20error%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-747202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747300%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Refresh%20chart%20in%20the%20same%20place%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747300%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks!!!%20working%20great!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Refresh%20chart%20in%20the%20same%20place%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMaybe%20Auto%20Recalc%20will%20work%20for%20you%3B%20the%20graph%20updates%20as%20the%20data%20changes.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22red%20triangle-%26gt%3BRedo-%26gt%3BAutoRecalc%22%20style%3D%22width%3A%20715px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22red%20triangle-%26gt%3BRedo-%26gt%3BAutoRecalc%22%20style%3D%22width%3A%20715px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F63367iA07DA16437AEB992%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22capture.png%22%20alt%3D%22red%20triangle-%26gt%3BRedo-%26gt%3BAutoRecalc%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ered%20triangle-%26gt%3BRedo-%26gt%3BAutoRecalc%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ered%20triangle-%26gt%3BRedo-%26gt%3BAutoRecalc%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Refresh%20chart%20in%20the%20same%20place%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHere%20is%20an%20example%20that%20my%20give%20you%20an%20approach%20you%20can%20use%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%20%3D%0A%2F%2F%20Open%20Data%20Table%3A%20Big%20Class.jmp%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22Big%20Class%22%20)%0AOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0Anw%20%3D%20new%20window(%22Example%22%2C%0A%09vlb%20%3Dvlist%20box(%0A%09)%2C%0A%09buttonbox(%22refresh%22%2C%0A%09%09biv%20%26lt%3B%26lt%3B%20delete%3B%0A%09%09wait(2)%3B%2F%2F%20the%20wait()%20is%20just%20to%20show%20that%20the%20chart%20has%20been%20deleted%20before%20the%20refresh%0A%09%09vlb%26lt%3B%3CAPPEND%3E%3C%2FAPPEND%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
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