Is there any way to have one shared column switcher for multiple graphs?
For example, I would like to have 1 column switcher to view two different variability charts...
Thank you for your help in advance.
I'm happy to report that JMP 16 will support using a single Column Switcher across multiple platforms.
Hi,
Is it possible to do that without script?
Thank in advance for responses
I just want to highlight how powerful that particular use of << set script() is. I had been wondering for awhile how to get JMP to do something when changing selections in the column switcher, and this fits the bill perfectly.
nw<SPAN class="token punctuation">[</SPAN><SPAN class="token string">"Var Charts"</SPAN><SPAN class="token punctuation">]</SPAN><SPAN class="token punctuation">[</SPAN>listboxbox<SPAN class="token punctuation">(</SPAN><SPAN class="token number">1</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">]</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> set script<SPAN class="token punctuation">(...)</SPAN>
Thanks!
Jim, Thank you so much. Let me work on this and i will let you know how your suggested workaround turns out!
Here is a script that works on JMP 13
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
nw = New Window( "test",
ob = Outline Box( "Var Charts",
MyHLB = H List Box(
vc = Variability Chart( Y( :BP 8M ), X( :Subject ), Std Dev Chart( 0 ) ),
vc2 = Variability Chart( Y( :BP 8M ), X( :Subject ), Std Dev Chart( 0 ) )
)
)
);
cs = vc << Column Switcher( :BP 8M, {:BP 8M, :BP 12M, :BP 6M, :BP 8W, :BP 12W, :BP 6W, :BP 8F, :BP 12F, :BP 6F} );
nw["Var Charts"][listboxbox(1)] << set script(
VarList = {:BP 8M,:BP 12M,:BP 6M,:BP 8W,:BP 12W,:BP 6W,:BP 8F,:BP 12F,:BP 6F};
CurVar = word(2,char(vc2<<GET script=""></GET>
I tested it on JMP 11.1, and it works only for the first selection, then the link to the second Variability Chart gets lost. I assume this is a JMP bug that was fixed in JMP 12 or 13. However, all is not lost. What you can do, is to change my code to not generate a second Column Switcher and then use it to change the second chart, but instead, to delete the VC2 object completly, and then rebuild the chart and to append it to the MyHLB object.
For others that are interested, here is the JMPer Cable showing the Link Platform for Column Switcher https://community.jmp.com/t5/JMPer-Cable/New-features-in-the-Column-Switcher-for-JMP-16/ba-p/365930