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
GgGgGg2024
Level I

Column switcher and Graph Builder

Hi,

 

I have a number of columns which I have grouped together.

In the graph builder I have the X axis constant, but the Y axis should have the column switcher function where we can chose which parameter we want to switch between from the said group of columns.

 

First I tell JSL what columns should be in the group and which column should be my first column

colList = dttable << get column names( continuous );
	col1 = colList[1];

This is the code and the error I am getting,

 

Graph Builder(
	Size( 570, 621 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables( X( :batch_no ), Y( :col1 ) /*###*/ ),
	Elements( Points( X, Y, Legend( 8 ) ) ),
	Column Switcher( :col1, {:colList} )
)

 

Can you tell me what I should write for the Y variable so I can get the first column to start with and then add the column switcher.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Column switcher and Graph Builder

You are specifying 

:col1

The colon is telling JMP there is a column in the data table called "col1"(see scoping in JMP documentation);  Col1 is a memory variable, not a column.  Remove the colon and your code should work.

Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Column switcher and Graph Builder

You are specifying 

:col1

The colon is telling JMP there is a column in the data table called "col1"(see scoping in JMP documentation);  Col1 is a memory variable, not a column.  Remove the colon and your code should work.

Jim
GgGgGg2024
Level I

Re: Column switcher and Graph Builder

Hi Jim,

 

Thanks for your help.

 

I get the graph now, but the column switcher still does not work. 

dtrelsplit << Newscript ("graph",
	Graph Builder(
	Size( 570, 621 ),
Show Control Panel( 0 ), Show Legend( 0 ), Variables( X( :batch_no ), Y(col1), ), Elements( Points( X, Y, Legend( 8 ) ) ), Column Switcher( col1, {colList} ), ),


Column Switcher cannot find specified column col1 in platform script

This is the error  shown

 

txnelson
Super User

Re: Column switcher and Graph Builder

Here are my modifications

Graph Builder(
	Size( 570, 621 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables( X( :batch_no ), Y( as column(col1) ) ),
	Elements( Points( X, Y, Legend( 8 ) ) ),
	Column Switcher( col1, colList )
		
)
;

colList is a list, so it does not require a second set of {}

Jim
GgGgGg2024
Level I

Re: Column switcher and Graph Builder

Thanks