cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
GALIT
Level I

JSL Interactive Spline

Hey friends,

I’d appreciate your help.
I’ve prepared a dashboard containing several graphs with SPLINE.
I want to change the graph spline, without building the graph each time the user changes the spline,
for the moment I'm using the graph reports NumberEditbox:
for(i.....
ChartsContainerVlis[OutlineBox( i )][NumberEditBox(1)]<<set(lambada);

but I don't want the report to appear in the dashboard,

Is there a way of changing that using the CURVE?


biv << (Curve[1] <<??;

or to use the report`s NumberEditbox when it's invisible to the user?

 

GALIT_0-1634111206729.png

 

2 REPLIES 2
Craige_Hales
Super User

Re: JSL Interactive Spline

It seems like there should be, but I can't figure out how to discover it.

 

I think you already have code similar to Saving Custom Animations (for moving the slider).

 

Once you build the dashboard, try right-click on outline you want to hide, show properties. Look for the visibility drop down and see if hidden does what you want (or maybe collapse.) You might be able to do that in app builder mode of the dashboard too.

Craige

Re: JSL Interactive Spline

I think @Craige_Hales has the right idea in hiding the outlines that you do not want to be visible in the report.  You might find it easier to do that prior to adding the report to the Dashboard - any customizations made to box properties will be remembered when the report is added to the Dashboard.

 

I also do not see a way to update the lambda through scripting, so I think you may need to stick with updating via the NumberEditBox.  That should work even if you have hidden the display box.  Here is a JSL example demonstrating this:

dt=Open("$SAMPLE_DATA/Big Class.jmp");
biv=dt<<Bivariate(
	Y( :weight ),
	X( :height ),
	Fit Spline( 1, {Line Color( {61, 174, 70} )} )
);
Wait(1);
Report(biv)[OutlineBox(2)]<<Visibility("Collapse");
Wait(2);
Report(biv)[NumberEditBox(1)] << Set(10.0);