<?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: How does the JSL of MP software achieve this effect on web pages in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923169#M108161</link>
    <description>&lt;P&gt;As an alternative, you can edit the "Picture" script of the HoverLabel - to trigger any action you want:&lt;/P&gt;
&lt;P&gt;- open a web page&lt;BR /&gt;- display further information in the graph&lt;BR /&gt;- open another plot ...&lt;/P&gt;
&lt;P&gt;Further details can be found in this post:&lt;BR /&gt;&lt;LI-MESSAGE title="Re: actions via mouseover ? - us a modifier Key 👉🔳" uid="780202" url="https://community.jmp.com/t5/Discussions/actions-via-mouseover-use-a-modifier-Key/m-p/780202#U780202" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The benefit of this approach:&lt;BR /&gt;the Hoverlabel &lt;EM&gt;&lt;STRONG&gt;knows&lt;/STRONG&gt; &lt;/EM&gt;the country of the current mouse position, no need to look it up:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Country[local:_firstrow]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jan 2026 12:31:40 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2026-01-10T12:31:40Z</dc:date>
    <item>
      <title>How to achieve the effect of the cursor pointing to the displayed content on a web page using JSL in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923117#M108155</link>
      <description>&lt;P&gt;Thanks Experts!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://worldmap.ifnews.com/chinamap/china/fmap" target="_blank" rel="noopener"&gt;http://worldmap.ifnews.com/chinamap/china/fmap&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;h = [=&amp;gt;];
h["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36";
h["Accept"] = "application/json, text/javascript, */*; q=0.01";
h["Referer"] = "http://worldmap.ifnews.com/chinamap/china/fmap";
h["X-Requested-With"] = "XMLHttpRequest";
u = "http://worldmap.ifnews.com/chinamap/china/financialData?type=all";
rs = New HTTP Request(URL(u), Method("GET"), Headers(h));
rr = rs &amp;lt;&amp;lt; Send;
If( !Is Missing( rr ),
	txt = Blob To Char( rr );
	dt = JSON To Data Table( txt );
	dt &amp;lt;&amp;lt; Set Name( "map" );
	dt:price &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Continuous );
	dt:priceLimit &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Continuous );
	dt:changeAmount &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Continuous );
	dt:countryCName &amp;lt;&amp;lt; Set Property( "Map Role", {Map Role( NameName, Map Name( "World", "Countries" ) )} );
	dt &amp;lt;&amp;lt; Graph Builder(
		Size( 800, 600 ),
		Show Control Panel( 0 ),
		Variables( Shape( :countryCName ), Color( :priceLimit ) ),
		Elements( Map Shapes( Legend( 5 ) ) ),
		SendToReport(
			Dispatch(
				{},
				"400",
				ScaleBox,
				{Legend Model(
					5,
					Properties(
						0,
						{gradient(
							{Color Theme( "Red to Green" ), 
							Reverse Gradient( 1 )} 
						)},
						Item ID( "priceLimit", 1 )
					)
				)}
			)
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-10_10-33-59.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90584i594CDB9B35EC888A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-10_10-33-59.png" alt="2026-01-10_10-33-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 07:40:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923117#M108155</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-10T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923128#M108156</link>
      <description>&lt;P&gt;Which effect? Which web pages?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 06:38:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923128#M108156</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-10T06:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923159#M108159</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to achieve the effect of the cursor pointing to the displayed content on a web page using JSL in JMP?&lt;BR /&gt;&lt;A href="http://worldmap.ifnews.com/chinamap/china/fmap" target="_blank"&gt;http://worldmap.ifnews.com/chinamap/china/fmap&lt;/A&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-10_15-38-22.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90594iB4513FD9D1B9AD88/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-10_15-38-22.png" alt="2026-01-10_15-38-22.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When the cursor points to a certain country range on the map, data pops up&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 07:42:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923159#M108159</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-10T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923164#M108160</link>
      <description>&lt;P&gt;In JMP, this function is implemented via Hover Labels:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1768032965584.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90599i5E750570F5FFE216/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1768032965584.png" alt="hogi_0-1768032965584.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need a faster update - and maybe don't like the appearance of the Hoverlabel Box, then you can use mousetrap.&lt;BR /&gt;For further details, see&amp;nbsp;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp; response to a similar question:&lt;BR /&gt;&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810221/highlight/true#M99217" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Can-JMP-graphics-have-this-effect/m-p/810221/highlight/true#M99217&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 08:22:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923164#M108160</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-10T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923169#M108161</link>
      <description>&lt;P&gt;As an alternative, you can edit the "Picture" script of the HoverLabel - to trigger any action you want:&lt;/P&gt;
&lt;P&gt;- open a web page&lt;BR /&gt;- display further information in the graph&lt;BR /&gt;- open another plot ...&lt;/P&gt;
&lt;P&gt;Further details can be found in this post:&lt;BR /&gt;&lt;LI-MESSAGE title="Re: actions via mouseover ? - us a modifier Key 👉🔳" uid="780202" url="https://community.jmp.com/t5/Discussions/actions-via-mouseover-use-a-modifier-Key/m-p/780202#U780202" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The benefit of this approach:&lt;BR /&gt;the Hoverlabel &lt;EM&gt;&lt;STRONG&gt;knows&lt;/STRONG&gt; &lt;/EM&gt;the country of the current mouse position, no need to look it up:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Country[local:_firstrow]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 12:31:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923169#M108161</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-10T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923176#M108162</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6387521149112w592h512r276" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6387521149112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6387521149112w592h512r276');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6387521149112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/World Demographics.jmp" );

mapxy = Open( "$MAPS/World-XY.jmp" );
mapname = Open( "$MAPS/World-Name.jmp" );
mapname &amp;lt;&amp;lt; New Column( "X", Format( "Longitude DDD", "PUNDIR", 14, 4 ) );
mapname &amp;lt;&amp;lt; New Column( "Y", Format( "Latitude DDD", "PUNDIR", 14, 4 ) );

For Each( {rw}, Index( 1, N Rows( mapname ) ),
	shapeID = mapName:ShapeID[rw];
	rws = mapxy &amp;lt;&amp;lt; get rows where( :ShapeID == shapeID &amp;amp; :PartID == 1 );
	xs = mapxy[rws, "X"];
	ys = mapxy[rws, "Y"];
	{x, y} = Polygon Centroid( xs, ys );
	mapname:x[rw] = x;
	mapname:y[rw] = y;
);

dt &amp;lt;&amp;lt; Update( With( mapname ), Match Columns( :Territory = :Region ), Add Columns from Update Table( :X, :Y ) );

New Namespace(
	"hover"
);
hover:GDP = 0;
hover:x = 0;
hover:y = 0;
gb = Graph Builder(
	Variables( Color( :GDP per Capita ), Shape( :Territory ) ),
	Elements( Map Shapes() ),
	SendToReport(
		Dispatch( {}, "", ScaleBox,
			{Format( "Longitude DDD", "PUNDIR", 16 ), Min( 0 ), Max( 30 )}
		),
		Dispatch( {}, "", ScaleBox( 2 ),
			{Format( "Latitude DDD", "PUNDIR", 16, 0 ), Min( 40 ), Max( 50 )}
		),
		Dispatch( {}, "Graph Builder", FrameBox,
			{Set Graphlet(
				Picture(
					hover:GDP = :GDP per Capita[local:_firstrow];
					hover:x = :X[local:_firstrow];
					hover:y = :y[local:_firstrow];
//approach1: select the current country and trigger an update -&amp;gt; nice, but draggy
//local:_dataTable &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; select rows(local:_firstrow);
					gb &amp;lt;&amp;lt; inval;
					gb &amp;lt;&amp;lt; updatewindow;

		
				)
			)}
		)
	)
);

fb1 = Report( gb )[FrameBox( 1 )];
fb1 &amp;lt;&amp;lt; addgraphicsscript(
	x = hover:x;
	y = hover:y;
	Text( center justified, {hover:x, hover:y}, "GDP:  " || Char( Round( hover:GDP ) ) );
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does &lt;STRONG&gt;Hover Label&lt;/STRONG&gt; know the current position of the mouse?&lt;BR /&gt;unfortunately, &lt;FONT face="courier new,courier"&gt;local:_xaxis/_yaxis =0&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a workaround I used this approach&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/exporting-x-amp-y-values-coordinates-from-graph-builder-once-jmp/m-p/193660/highlight/true#M41407" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/exporting-x-amp-y-values-coordinates-from-graph-builder-once-jmp/m-p/193660/highlight/true#M41407&lt;/A&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5241"&gt;@johnmoore&lt;/a&gt;&amp;nbsp; to calculate the centroid of the country - to show the GDP.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As an alternative, one can use Mousetrap (in addition to the Hover Label workaround) to get the position of the mouse.&lt;BR /&gt;The disadvantage: less interactive as the user has to press the mouse button.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 12:36:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923176#M108162</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-10T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How does the JSL of MP software achieve this effect on web pages</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923188#M108163</link>
      <description>&lt;P&gt;Thanks Experts!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-10_20-26-18.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90620i6D75CBE7D33F63A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-10_20-26-18.png" alt="2026-01-10_20-26-18.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 12:28:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-achieve-the-effect-of-the-cursor-pointing-to-the/m-p/923188#M108163</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-10T12:28:57Z</dc:date>
    </item>
  </channel>
</rss>

