//Include script to modify GraphBuilder with some special functions defined include(ConvertFilePath("/Users/gemann/Projects/Prototypes/JSLClasses/GraphBuilderJSLAPI.jsl", absolute, windows)); //Create a sample table dt = New Table( "Test", Add Rows( 7 ), New Column( "GROUP", Character, "Nominal", Set Values( {"a", "b", "c", "d", "e", "f", "g"} ) ), New Column( "Y", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [7, ., 6, ., 4, ., 2] ) ), New Column( "Y 2", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [7, 6, 2, 3, ., ., .] ), Set Display Width( 49 ) ) ); //Add a new window and build a listbox beside a graphbuilder New Window( "CustomColumnSwitcher Window", //Start by getting all of the columns in the current datatable CNames = dt << Get Column Names( Numeric ); Show( CNames ); //User a horizontal layout HListBox( //Use a ListBox as the new Column Switcher lb = List Box( CNames, maxSelected(1), //The next lines specify the script that gets run when an item in listbox is selected dt << clearrowstates(); newvarname = lb<