See if this is what you want
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
cc = {"height", "weight"};
nw = New Window( "Chooser",
rb = Radio Box(
cc,
theColumn = rb << get;
Try( dis << delete );
vlb << append( dis = Distribution( Continuous Distribution( Column( cc[theColumn] ) ) ) );
),
vlb = V List Box(
dis = Distribution( Continuous Distribution( Column( cc[1] ) ) )
)
);
But what I really think you should use, is the builtin Column Switcher
![txnelson_0-1674717307477.png txnelson_0-1674717307477.png](https://community.jmp.com/t5/image/serverpage/image-id/49452i28D581CDA42651C5/image-dimensions/523x987?v=v2)
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Distribution(
Continuous Distribution( Column( :height ), Always use column properties( 1 ) ),
Column Switcher( :height, {:height, :weight} )
);
Jim