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

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

How do i update the graph builder from Jmp version 14 to 16?

Hi,

I have the following JSL code that creates a Graph Builder plot inside a For loop. It works correctly in JMP 14 but produces wrong output in JMP 16.

JMP 14 Code (works correctly):

gb = Expr(
    dt << Graph Builder(
        Size( 635, 338 ),
        Show Control Panel( 0 ),
        Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
        Elements(
            Points( X, Y, Legend( 1 ) ),
            Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
        ),
        Local Data Filter(
            invisible,
            Add Filter(
                columns( :Component, :Batch, :Source Table ),
                Where( :Component == numPar[i] ),
                Where( :Batch == {cyc, bat}),
                Where( :Source Table == dt_name )
            )
        ),
        SendToReport(
            Dispatch(
                {},
                "Time Point Months",
                ScaleBox,
                {Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
            ),
            Dispatch(
                {},
                "graph title",
                TextEditBox,
                {Set Text( numPar[i] || " vs. Time Point" )}
            ),
            Dispatch( {},
                "Y title", 
                TextEditBox, 
                {Set Text( yTitleText)}
            ),
            Dispatch(
                {},
                "Result",
                ScaleBox,
                {Format( "Fixed Dec", 10, 3 ), 
                Min( Eval( minval )), 
                Max( Eval( maxval )), 
                Inc( Eval( (maxval - minval) / 10 ))}
            )
        )
    )
);
col1 << Append(gb);


Did the Graph Builder syntax or Local Data Filter behavior change between JMP 14 and JMP 16? How should I rewrite this to work correctly in JMP 16?

1 REPLY 1
Craige_Hales
Super User

Re: How do i update the graph builder from Jmp version 14 to 16?

It is likely the dispatch(...) bits that changed.  Before and after pictures, error messages, and sample data will help somebody see what's going on. 

Craige

Recommended Articles