<?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: Hover Labels: send a more precise filter? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612789#M81301</link>
    <description>&lt;P&gt;Adapting the code from&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Hover-graphlet-from-another-data-table/m-p/299036/highlight/true#M55890" target="_self"&gt;Hover-graphlet-from-another-data-tabl&lt;/A&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Hover-graphlet-from-another-data-table/m-p/299036/highlight/true#M55890" target="_self"&gt;e#M55890&lt;/A&gt;, I guess it will be something like the below code - but I hope that there is a non-JSL (2 clicks?) version available.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

mainGB = dt &amp;lt;&amp;lt; Graph Builder( Variables( X( :sex ), Y( :age ), Color( :name ) ), Elements( Points( X, Y, Legend( 19 ) ) ) );
Report( mainGB )["Graph Builder", FrameBox( 1 )] &amp;lt;&amp;lt; Set Graphlet(
	Picture(
		getGraphlet = Function( {row},
			{gb},
			gb = Graph Builder( Variables( Y( :height ) ), Elements( Points( Y, Legend( 6 ) ) ) );
			gb &amp;lt;&amp;lt; Local Data Filter( Close Outline( 1 ), Add Filter( columns( :name ), Where( :name == :name[row] ) ) );
			gb;
		);
		If( local:_mode == "Click",
			New Window( "Wafer Graphlet", getGraphlet( local:_firstRow ) );
			Empty();
		,
			plt = Platform( local:_dataTable, gb = getGraphlet( local:_firstRow ) );
			Picture Box( (gb &amp;lt;&amp;lt; report)[Picture Box( 1 )] &amp;lt;&amp;lt; Get Picture( 0.5 ) );
		);
	),
	Skip Filters( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Mar 2023 19:06:21 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-03-15T19:06:21Z</dc:date>
    <item>
      <title>Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612659#M81278</link>
      <description>&lt;P&gt;I want to generate a hover graphlet from another data table following a recipe &lt;A href="https://community.jmp.com/t5/Discussions/Hover-graphlet-from-another-data-table/m-p/296778/highlight/true#M55790" target="_self"&gt;provided&lt;/A&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3734"&gt;@nascif_jmp&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I am facing can be reproduced with a single data table.&lt;/P&gt;&lt;P&gt;The below example looks extremely boring - "why does he want to plot a single point ?!?"&lt;/P&gt;&lt;P&gt;... but makes sense when two different data tables are used [main data table with median values, hover plot with individual values]&amp;nbsp; : )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When hovering over a data point, I want the hover graphlet&amp;nbsp; to be restricted to the data corresponding exactly to the single data point.&lt;/P&gt;&lt;P&gt;my problem: the data point is not fully described by the columns used for x and y axis. In the example.&lt;BR /&gt;[I use sex and age on the axes leading to several data points for each sex and age.]&lt;/P&gt;&lt;P&gt;Hovering over one of the data points just restricts the hover graphlet by sex and age, but not to the single data point (which I could get via name&amp;nbsp; etc).&lt;/P&gt;&lt;P&gt;So, how to get a more precise specification of the data point beyond the x/y axis - without affecting the main graph?&lt;/P&gt;&lt;P&gt;I tried to use Color or Size, but those settings are just ignored by the Hover Label Framework.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to tell the Hover Label Framework to pipe an additional column filter to the Hover Label - without changing the main graph?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 points instead of a &lt;STRONG&gt;single point&lt;/STRONG&gt; [corresponding to the entries in the hover label &lt;STRONG&gt;Gridlet: &lt;/STRONG&gt;&lt;EM&gt;Marion&lt;/EM&gt;, F, 16]:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1678897139261.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51119iEE91B8562B79A896/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1678897139261.png" alt="hogi_0-1678897139261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;BR /&gt;dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :sex ), Y( :age ), Color( :name ) ),
	Elements( Points( X, Y, Legend( 19 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Set Graphlet(
				Picture(
					Graph Builder(
						Variables( Y( :height ) ),
						Elements( Points( Y, Legend( 6 ) ) )
					)
				)
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:28:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612659#M81278</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-08T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612705#M81282</link>
      <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/work-with-the-hover-label-execution-context.shtml" target="_self"&gt;&amp;nbsp;Scripting Guide &amp;gt; Scripting Graphs &amp;gt; Hover Labels &amp;gt; Work with the Hover Label Execution Context&lt;/A&gt; is really helpful with hoverlabels&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:sex), Y(:age), Color(:name)),
	Elements(Points(X, Y, Legend(19))),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Set Textlet(
				Setup(
					local:encodedWhere = XML Encode(local:_where);
					Show(Namespace("local") &amp;lt;&amp;lt; Get Contents());
				),
				Markup(
					"
&amp;lt;b&amp;gt;Groupings&amp;lt;/b&amp;gt;: {local:_groupings}
&amp;lt;b&amp;gt;Measurements&amp;lt;/b&amp;gt;: {local:_measurements}
&amp;lt;b&amp;gt;Summary statistic&amp;lt;/b&amp;gt;: {local:_summaryStatistic}
&amp;lt;b&amp;gt;Filter columns&amp;lt;/b&amp;gt;: {local:_filters}
&amp;lt;b&amp;gt;Where clause&amp;lt;/b&amp;gt;: {local:encodedWhere}
&amp;lt;b&amp;gt;Graph type&amp;lt;/b&amp;gt;: {local:_displaySegName}
&amp;lt;b&amp;gt;Data table&amp;lt;/b&amp;gt; {local:_dataTable}
&amp;lt;b&amp;gt;Drill depth&amp;lt;/b&amp;gt;: {local:_drillDepth}
&amp;lt;b&amp;gt;First Row&amp;lt;/b&amp;gt;: {local:_firstRow}
&amp;lt;b&amp;gt;Underlying Rows&amp;lt;/b&amp;gt;: {local:_underlyingRows}
"
				)
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you run that and take a look at log, you should be able to access the name value&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Namespace("local") &amp;lt;&amp;lt; Get Contents() = {{"_filters", {:sex, :age}}, {"_mode", "Textlet"}, {"_where", ":sex == \!"F\!" &amp;amp; :age == 16"}, {"_age", 16}, {"_name", "MARION"}, {"_sex", "F"}, {"_groupings", {:sex, :age}}, {"_firstRow", 36}, {"_underlyingRows", 1}, {"_measurements", {}}, {"_displaySegName", "MarkerSeg"}, {"_dataTable", DataTable("Big Class")}, {"_summaryStatistic", ""}, {"_drillDepth", 1}, {"_xaxis", 0}, {"_yaxis", 0}, {"_customData", [=&amp;gt;]}, {"_localDataFilter", "Local Data Filter(
	Close Outline(1),
	Add Filter(columns(:sex, :age), Where(:sex == \!"F\!"), Where(:age == 16))
)"}, {"_whereExpr", :sex == "F" &amp;amp; :age == 16}, {"encodedWhere", ":sex == &amp;amp;quot;F&amp;amp;quot; &amp;amp;amp; :age == 16"}};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but I'm not sure if you can (easily) force the name filter in plotter graph. You can remove filters with Skip Filter but no idea about adding them &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/add-graphs-or-images-to-hover-labels-using-graphlets.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Scripting Graphs &amp;gt; Hover Labels &amp;gt; Add Graphs or Images to Hover Labels Using Graphlets&lt;/A&gt; . Subset workaround is one option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overlay would let you filter to that level, but that isn't really helpful as you cannot hover over that single point...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 17:27:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612705#M81282</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-15T17:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612770#M81298</link>
      <description>&lt;P&gt;I mean:&lt;BR /&gt;a solution which I can show to my colleagues which have a 30 day trial license - to convince them that Jmp is SOOOOO useful and SOOOO easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:38:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612770#M81298</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-15T18:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612789#M81301</link>
      <description>&lt;P&gt;Adapting the code from&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Hover-graphlet-from-another-data-table/m-p/299036/highlight/true#M55890" target="_self"&gt;Hover-graphlet-from-another-data-tabl&lt;/A&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Hover-graphlet-from-another-data-table/m-p/299036/highlight/true#M55890" target="_self"&gt;e#M55890&lt;/A&gt;, I guess it will be something like the below code - but I hope that there is a non-JSL (2 clicks?) version available.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

mainGB = dt &amp;lt;&amp;lt; Graph Builder( Variables( X( :sex ), Y( :age ), Color( :name ) ), Elements( Points( X, Y, Legend( 19 ) ) ) );
Report( mainGB )["Graph Builder", FrameBox( 1 )] &amp;lt;&amp;lt; Set Graphlet(
	Picture(
		getGraphlet = Function( {row},
			{gb},
			gb = Graph Builder( Variables( Y( :height ) ), Elements( Points( Y, Legend( 6 ) ) ) );
			gb &amp;lt;&amp;lt; Local Data Filter( Close Outline( 1 ), Add Filter( columns( :name ), Where( :name == :name[row] ) ) );
			gb;
		);
		If( local:_mode == "Click",
			New Window( "Wafer Graphlet", getGraphlet( local:_firstRow ) );
			Empty();
		,
			plt = Platform( local:_dataTable, gb = getGraphlet( local:_firstRow ) );
			Picture Box( (gb &amp;lt;&amp;lt; report)[Picture Box( 1 )] &amp;lt;&amp;lt; Get Picture( 0.5 ) );
		);
	),
	Skip Filters( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:06:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612789#M81301</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-15T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/626369#M82520</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3734"&gt;@nascif_jmp&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:01:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/626369#M82520</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-26T16:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/653687#M84305</link>
      <description>&lt;P&gt;Much easier than I feared ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I just learned a super cool trick from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1643"&gt;@Jasean&lt;/a&gt;&amp;nbsp;:&lt;BR /&gt;&lt;STRONG&gt;restrict the hover graph via "&lt;FONT face="courier new,courier"&gt;Where"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then one can start with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;'s&amp;nbsp; findings:&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612705/highlight/true#M81282" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/612705/highlight/true#M81282.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All you have to do is add (edit *)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; Where( :name == local:_name )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; Where( :name == _name )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;*) but not&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Where( :name == :_name )&amp;nbsp;!&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Graph Builder(
        Variables( X( :sex ), Y( :age ), Color( :name ) ),
        Elements( Points( X, Y, Legend( 19 ) ) ),
        SendToReport(
               Dispatch(
                       {},
                       "Graph Builder",
                       FrameBox,
                       {Set Graphlet(
                               Picture( 
                                      Graph Builder( 
                                              Variables( Y( :height ) ), 
                                              Elements( Points( Y, Legend( 6 ) ) ),
                                             Where( :name == local:_name )
                                      )
                               )
                       )}
               )
        )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:30:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/653687#M84305</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-28T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hover Labels: send a more precise filter?</title>
      <link>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/653703#M84306</link>
      <description>&lt;P&gt;Nice.&amp;nbsp; That is even better than what I sent you.&amp;nbsp; I learned something, too.&amp;nbsp; By the way, you should add the namespace name before the colon (:) or remove the colon in front of _name.&amp;nbsp; It is a variable in the local namespace, not a column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;local:_name
// or simply
_name&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:27:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hover-Labels-send-a-more-precise-filter/m-p/653703#M84306</guid>
      <dc:creator>Jasean</dc:creator>
      <dc:date>2023-06-28T14:27:28Z</dc:date>
    </item>
  </channel>
</rss>

