<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add in row legend in Distribution with radio box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674088#M86149</link>
    <description>&lt;P&gt;This is work for me, even the loading might be lagging sometimes. But it's okay..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway thankyou so much :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 11:35:54 GMT</pubDate>
    <dc:creator>mystylelife19</dc:creator>
    <dc:date>2023-09-04T11:35:54Z</dc:date>
    <item>
      <title>Add in row legend in Distribution with radio box</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674037#M86144</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before this I created a single radio box and biv plot but right now &lt;SPAN&gt;I have been improvising my script. Here is my problem so far&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I have created my scripts that open 3 graphs, with self function&amp;nbsp;radio box&lt;/DIV&gt;&lt;DIV&gt;1) Distribution&lt;/DIV&gt;&lt;DIV&gt;2) Fit Y by X&lt;/DIV&gt;&lt;DIV&gt;3) Radio Box&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mystylelife19_0-1693817690084.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56202i14B7FD11851F2B5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mystylelife19_0-1693817690084.png" alt="mystylelife19_0-1693817690084.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;My problem is:&lt;/DIV&gt;&lt;DIV&gt;1) Whenever I run the script, the row legend only appears IL_ALL and can't be changed even if I click on the radio box.&lt;/DIV&gt;&lt;DIV&gt;2) I want the radio box parameter to change the row legend on Distribution but I don't know how to create that script.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help me to rewrite my script. I am still a newbie on this JSL scripting.&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Get the current data Table
Names Default To Here( 1 );
dt = Current Data Table();

columnNames = dt &amp;lt;&amp;lt; Get Column Names( "String" );

cl = New Window( "Column Selection", 
//	&amp;lt;&amp;lt;modal, // optional, probably not what you want
	H List Box(
		Panel Box( "Make a selection",
			allcolumn = Radio Box(
				columnNames,
				&amp;lt;&amp;lt;Set Function( Function( {self}, col = self &amp;lt;&amp;lt; get selected ) )
			)
		)
	)
);

Distribution(
	Stack( 1 ),
	Arrange in Rows( 2 ),
	Continuous Distribution(
		Column(:IL_ALL_MAG_C1_S21),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Normal Quantile Plot( 1 )
	),
	SendToReport(
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"",
			Border Box( 3 ),
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"Distrib Quantile Plot",
			FrameBox,
			{Row Legend(
				Eval (col),
				Color( 1 ),
				Color Theme( "Spectral"(1) ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		),
		Dispatch( col, "", TextBox, {Rotate Text( "Left" )} )
	)
);

Bivariate( Y( :Y ), X( :X ), By( :WAFER_ID, :SITE_NO ) );&lt;/CODE&gt;&lt;/PRE&gt;Here below I attach example data table:&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:02:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674037#M86144</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-09-04T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add in row legend in Distribution with radio box</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674042#M86145</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Get the current data Table
Names Default To Here( 1 );
dt = Current Data Table();

columnNames = dt &amp;lt;&amp;lt; Get Column Names( "String" );

cl = New Window( "Column Selection",
	H List Box(
		Panel Box( "Make a selection",
			allcolumn = Radio Box(
				columnNames,
				&amp;lt;&amp;lt;Set Function( Function( {self}, col = self &amp;lt;&amp;lt; get selected ) )
			)
		)
	)
);

Distribution(
	Continuous Distribution(
		Column( :IL_ALL_MAG_C1_S21 ),
		Normal Quantile Plot( 1 )
	),
	SendToReport(
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"",
			Picture Box( 5 ),
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"Distrib Quantile Plot",
			FrameBox,
			{Row Legend(
				IL_ALL_MAG_C1_S21,
				Color( 1 ),
				Color Theme( "Spectral" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

Bivariate( Y( :Y ), X( :X ), By( :WAFER_ID, :SITE_NO ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here the latest update script, sorry the previous one is the old one :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:07:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674042#M86145</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-09-04T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add in row legend in Distribution with radio box</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674060#M86147</link>
      <description>&lt;P&gt;You can use &amp;lt;&amp;lt; Row Legend to add new legend to FrameBox. The most difficult part in this is to remove the old one, below is one suggestion using XPath (might not be robust enougH)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Get the current data Table
Names Default To Here(1);
dt = Current Data Table();

columnNames = dt &amp;lt;&amp;lt; Get Column Names("String");

cl = New Window("Column Selection",
	H List Box(
		dist = dt &amp;lt;&amp;lt; Distribution(
			Continuous Distribution(Column(:IL_ALL_MAG_C1_S21), Normal Quantile Plot(1)),
			SendToReport(
				Dispatch({"IL_ALL_MAG_C1_S21"}, "", Picture Box(5), {Set Summary Behavior("Collapse")}),
				Dispatch(
					{"IL_ALL_MAG_C1_S21"},
					"Distrib Quantile Plot",
					FrameBox,
					{Row Legend(
						IL_ALL_MAG_C1_S21,
						Color(1),
						Color Theme("Spectral"),
						Marker(0),
						Marker Theme(""),
						Continuous Scale(0),
						Reverse Scale(0),
						Excluded Rows(0)
					)}
				)
			)
		),
		Panel Box("Make a selection",
			allcolumn = Radio Box(columnNames, &amp;lt;&amp;lt;Set Function(Function({self}, 
				cur_col = self &amp;lt;&amp;lt; get selected;
				(Dist&amp;lt;&amp;lt; XPath("//BorderBox/OwnerBox/PictureBox/TableBox/../../..")) &amp;lt;&amp;lt; Delete Box; // might not be robust enough
				fbox &amp;lt;&amp;lt; Row Legend(
					Eval(cur_col),
					Color(1),
					Color Theme("Spectral"),
					Marker(0),
					Marker Theme(""),
					Continuous Scale(0),
					Reverse Scale(0),
					Excluded Rows(0)
				);
			)))
		)
	)
);

fbox = Report(dist)[FrameBox(1)];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:45:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674060#M86147</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-04T09:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add in row legend in Distribution with radio box</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674088#M86149</link>
      <description>&lt;P&gt;This is work for me, even the loading might be lagging sometimes. But it's okay..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway thankyou so much :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 11:35:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-row-legend-in-Distribution-with-radio-box/m-p/674088#M86149</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-09-04T11:35:54Z</dc:date>
    </item>
  </channel>
</rss>

