How to let user choose multiple columns for graph builderHi,
I'm just getting started in JSL coding, I am trying to create a script that can take user input (selection of y columns) and plot them in the graph builder. As of right now only the first Y column can be changed based on user's selection but the other 3 remains hard coded. How can I modify the code so that the graph builder will take multiple input selections and don't expect a fixed number of inputs? (Just like using the regular JMP GUI for Graph Builder where you can put multiple Y-values at ones).
Thanks!


Automation and ScriptingData AccessWindowsRe: How to let user choose multiple columns for graph builderuse a for loop and

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
Variables( X( :height ) ),
Elements( Points( X ), Smoother( X ) )
);
for each ({col}, {:age, :weight},
gb << Add Variable( {col , Role( "Y" )} ));
Re: How to let user choose multiple columns for graph builderor maybe
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
Variables( X( :height ) ),
Elements( Points( X ), Smoother( X ) )
);
for each ({col,idx}, {:height, :weight},
gb << Add Variable( {col , Role( "Y" ), Position(1)} ));... if you want to add all Y values into one framebox
