Hi,
when a Column Switcher is linked to a graph, JMP seems to check for "already existing" columns in the graph and removes them from the list of entries of the column switcher.
Most of the time, this is a nice feature because it prevents collisions of the column switcher and already existing links between the graph and the column.
But sometimes there are cases where this feature hurts.
In the example below 3 columns are shared by the 2 column switchers for the X and Y axis of the plot - but the start values are automatically removed from the "other" column switcher.:
There can be still a collision for "weight". But if one tries to set both column switchers to "weight", this is automatically detected and prevented.
So - here - the auto-removal is not as helpful as it is meant to be.
How to get the missing values back into the list?
A workaround is to start with meaningless start values of the graph (which can then be removed from the column switcher list) - and then alter the start values via JSL to more meaningful values.
Is there an easier way, e.g. a parameter for the LinkPlatform command to disable the auto-removal ?
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
new window("test",
cs1=dt << Column Switcher(:sex, {:sex, :height, :weight});
cs2=dt << Column Switcher(:height, {:sex, :height, :weight});
gb = Graph Builder(
Size( 534, 460 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ) ),
Elements( Points( X, Y, Legend( 1 ) ) )
)
);
cs1 << Link Platform(gb );
cs2 << Link Platform(gb );