<?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 Referencing to underlaying (overlapping) datapoints on hover textlet/graphlet in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/485940#M72986</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sometimes dataset may contain overlapping points. Default mouse over hover gridlet is showing the number of overlapping points (N) and some other information (see example image below from big class.jmp dataset).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JanneI_1-1652249214413.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42371i3335649C582716B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JanneI_1-1652249214413.png" alt="JanneI_1-1652249214413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in to get this information also be utilized in textlet or graphet script. How do I get hovered rows to list? I can use following syntax for selected rows but well,&amp;nbsp; hovering does not make selection. And as far as I know, there is not "Get hovered rows" function. Any suggestions?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;selected_rows = as list(dt &amp;lt;&amp;lt; get selected rows);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following returns the first row of the overlapped rows. How&amp;nbsp;can I reference to underlaying data point(s) eg in For-loops?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:height[local:_firstRow]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following, as part of textlet, returns number of underlaying rows but as far as I know, does not return the rows eg as a list.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;b&amp;gt;Underlying Rows&amp;lt;/b&amp;gt;: {local:_underlyingRows}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried to read the following chapter carefully but I cannot find solution to my question:&lt;/P&gt;&lt;P&gt;Scripting Guide &amp;gt; Scripting Graphs &amp;gt; Hover Labels &amp;gt; Work with the Hover Label Execution Context&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have come over this by using jitter to avoid overlapping points but I am sure that there is better way to do this. Thanks for your advices!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Janne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:58:57 GMT</pubDate>
    <dc:creator>JanneI</dc:creator>
    <dc:date>2023-06-09T16:58:57Z</dc:date>
    <item>
      <title>Referencing to underlaying (overlapping) datapoints on hover textlet/graphlet</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/485940#M72986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sometimes dataset may contain overlapping points. Default mouse over hover gridlet is showing the number of overlapping points (N) and some other information (see example image below from big class.jmp dataset).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JanneI_1-1652249214413.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42371i3335649C582716B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JanneI_1-1652249214413.png" alt="JanneI_1-1652249214413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in to get this information also be utilized in textlet or graphet script. How do I get hovered rows to list? I can use following syntax for selected rows but well,&amp;nbsp; hovering does not make selection. And as far as I know, there is not "Get hovered rows" function. Any suggestions?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;selected_rows = as list(dt &amp;lt;&amp;lt; get selected rows);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following returns the first row of the overlapped rows. How&amp;nbsp;can I reference to underlaying data point(s) eg in For-loops?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:height[local:_firstRow]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following, as part of textlet, returns number of underlaying rows but as far as I know, does not return the rows eg as a list.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;b&amp;gt;Underlying Rows&amp;lt;/b&amp;gt;: {local:_underlyingRows}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried to read the following chapter carefully but I cannot find solution to my question:&lt;/P&gt;&lt;P&gt;Scripting Guide &amp;gt; Scripting Graphs &amp;gt; Hover Labels &amp;gt; Work with the Hover Label Execution Context&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have come over this by using jitter to avoid overlapping points but I am sure that there is better way to do this. Thanks for your advices!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Janne&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:58:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/485940#M72986</guid>
      <dc:creator>JanneI</dc:creator>
      <dc:date>2023-06-09T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing to underlaying (overlapping) datapoints on hover textlet/graphlet</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/485959#M72987</link>
      <description>&lt;P&gt;If I remember correctly JMP Help had quite good documentation on Hover Labels and their execution context:&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/work-with-the-hover-label-execution-context.shtml#ww599987" target="_blank"&gt;Work with the Hover Label Execution Context (jmp.com)&lt;/A&gt;. You might have to use the information you can get to perform query to data table to get all the rows.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:56:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/485959#M72987</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-05-11T06:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing to underlaying (overlapping) datapoints on hover textlet/graphlet</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/486102#M73007</link>
      <description>&lt;P&gt;Very quick example here:&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(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(1))),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			Set Textlet(
				Setup(
					expr = Parse(local:_where);
					local:r = local:_dataTable &amp;lt;&amp;lt; Get Rows Where(expr)
				),
				Markup("{local:r} rows")
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1652279617628.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42379iC96B5B2061D6A893/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1652279617628.png" alt="jthi_1-1652279617628.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(I clicked on the point to highlight them in data table)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:34:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/486102#M73007</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-05-11T14:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing to underlaying (overlapping) datapoints on hover textlet/graphlet</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/486132#M73013</link>
      <description>&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion to read the documentation more careful and your quick example. With this help, I understood better how the&amp;nbsp;&lt;SPAN&gt;Hover Label Execution Context Variables works (especially _where). I was able to incorporate this concept to my application. Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Janne&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:03:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-to-underlaying-overlapping-datapoints-on-hover/m-p/486132#M73013</guid>
      <dc:creator>JanneI</dc:creator>
      <dc:date>2022-05-11T16:03:21Z</dc:date>
    </item>
  </channel>
</rss>

