<?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 How to get an image to show on point selection or mouse over in a graph (image link in data table) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/184906#M40403</link>
    <description>&lt;P&gt;Goal: to have the image display on point selection (or mouse over) in graph builder.&lt;BR /&gt;I do not want the data points to be represented by the image.&lt;BR /&gt;&lt;BR /&gt;I have a column (Image Link 2) that is an expression and uses a formula.&amp;nbsp; The formula calls the web address of the image (Image Link).&amp;nbsp; The images show in the datatable in Image Link 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula for Image Link 2.&amp;nbsp; Data Type is Expression.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Image( Open( :Image Link, jpg ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Image Link is something like the below.&amp;nbsp; It displays in quotes in the data table.&amp;nbsp; Data Type is character.&amp;nbsp; (I've also tried it as an expression).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've played with three things&lt;/P&gt;&lt;P&gt;1. Label / unlabel&lt;/P&gt;&lt;P&gt;2. Marker&lt;/P&gt;&lt;P&gt;3. Event handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought this (&lt;A href="https://www.jmp.com/support/help/14-2/display-images-on-hover-labels.shtml" target="_self"&gt;Display Images on Hover Labels )&lt;/A&gt;&amp;nbsp;would work, making Image Link 2 Label, but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest I've gotten it to work is to set label to Image Link and put an Event Handler (the default one) on Image Link.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Function( {thisTable, thisColumn, iRow}, // 3 parameters
{ /* list of local variables, if needed */ },
// begin your code here
// this example is for URLs like https://www.jmp.com .
// You could build the URL from other columns and show
// a simpler ID in this column. You could also run a JMP
// platform instead of using the web() function.
Web( Char( thisTable:thisColumn[ iRow ] ) ); // open a web page
// end your code here
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But on the graph it won't show the image it displays the text of the web address of the image.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Question Image on Selection.png" style="width: 452px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15973i83194BCF8D946A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP Question Image on Selection.png" alt="JMP Question Image on Selection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 21:30:55 GMT</pubDate>
    <dc:creator>BSwid</dc:creator>
    <dc:date>2019-03-07T21:30:55Z</dc:date>
    <item>
      <title>How to get an image to show on point selection or mouse over in a graph (image link in data table)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/184906#M40403</link>
      <description>&lt;P&gt;Goal: to have the image display on point selection (or mouse over) in graph builder.&lt;BR /&gt;I do not want the data points to be represented by the image.&lt;BR /&gt;&lt;BR /&gt;I have a column (Image Link 2) that is an expression and uses a formula.&amp;nbsp; The formula calls the web address of the image (Image Link).&amp;nbsp; The images show in the datatable in Image Link 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula for Image Link 2.&amp;nbsp; Data Type is Expression.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Image( Open( :Image Link, jpg ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Image Link is something like the below.&amp;nbsp; It displays in quotes in the data table.&amp;nbsp; Data Type is character.&amp;nbsp; (I've also tried it as an expression).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've played with three things&lt;/P&gt;&lt;P&gt;1. Label / unlabel&lt;/P&gt;&lt;P&gt;2. Marker&lt;/P&gt;&lt;P&gt;3. Event handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought this (&lt;A href="https://www.jmp.com/support/help/14-2/display-images-on-hover-labels.shtml" target="_self"&gt;Display Images on Hover Labels )&lt;/A&gt;&amp;nbsp;would work, making Image Link 2 Label, but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest I've gotten it to work is to set label to Image Link and put an Event Handler (the default one) on Image Link.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Function( {thisTable, thisColumn, iRow}, // 3 parameters
{ /* list of local variables, if needed */ },
// begin your code here
// this example is for URLs like https://www.jmp.com .
// You could build the URL from other columns and show
// a simpler ID in this column. You could also run a JMP
// platform instead of using the web() function.
Web( Char( thisTable:thisColumn[ iRow ] ) ); // open a web page
// end your code here
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But on the graph it won't show the image it displays the text of the web address of the image.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Question Image on Selection.png" style="width: 452px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15973i83194BCF8D946A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP Question Image on Selection.png" alt="JMP Question Image on Selection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:30:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/184906#M40403</guid>
      <dc:creator>BSwid</dc:creator>
      <dc:date>2019-03-07T21:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an image to show on point selection or mouse over in a graph (image link in data tabl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/184976#M40408</link>
      <description>&lt;P&gt;The expression column may need a formula that retrieves the image using &lt;EM&gt;Open()&lt;/EM&gt; or &lt;EM&gt;New Image()&amp;nbsp;&lt;/EM&gt;(both seem to work).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table("test",
    Add Rows(2),
    New Column("X", Numeric, Set Values([1, 2])),
    New Column("Y", Numeric, Set Values([1, 2])),
    New Column("URL",
        Character,
        Set Values(
            {"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png",
            "https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"}
        )
    ),
    New Column("Image", Expression, Formula(New Image(:URL))),
    Set Label Columns(:Image)
);

dt &amp;lt;&amp;lt; Graph Builder(
    Show Control Panel(0),
    Variables(X(:X), Y(:Y)),
    Elements(Points(X, Y, Legend(11)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:14:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/184976#M40408</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2019-03-08T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an image to show on point selection or mouse over in a graph (image link in data tabl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185082#M40410</link>
      <description>&lt;P&gt;This is just an fyi for additional information:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Open the sample data table Big Class Families.jmp run the attached Bivariate script.&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt;&amp;nbsp;solution is an example of this technique&lt;/LI&gt;
&lt;LI&gt;The JMP Scripting Guide version 14,&amp;nbsp; page 337, contains a script that shows how to store pictures as a thumbnail, and creates a handler to display the full picture. This is probably better for a scenario where a full display picture is desired.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 06:43:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185082#M40410</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-08T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an image to show on point selection or mouse over in a graph (image link in data tabl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185467#M40424</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to reply to my own thread here with what ultimately worked.&amp;nbsp; It was three steps.&lt;/P&gt;&lt;P&gt;To be clear, this enabled image display on mouse over.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[1] My URL column somehow had quotes like (sorry I didn't include that in the original post)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;"https&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;www&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;wikipedia&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;portal&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;wikipedia&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;assets&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;img&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;Wikipedia&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;logo&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;v2&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;png"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing those&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;https&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;www&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;wikipedia&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;portal&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;wikipedia&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;assets&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;img&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;Wikipedia&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;logo&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;v2&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;png&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [2] Using the formula you provided worked much better than what I had&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Image( Open( :Image Link, jpg ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead following your example&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Image(:Image Link)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;worked much better.&lt;/P&gt;&lt;P&gt;[3] Setting the column with the above formula to Label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:57:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185467#M40424</guid>
      <dc:creator>BSwid</dc:creator>
      <dc:date>2019-03-08T18:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an image to show on point selection or mouse over in a graph (image link in data tabl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185548#M40426</link>
      <description>&lt;P&gt;For JMP 15.0 we are evaluating a new feature called &lt;EM&gt;Graphlets&lt;/EM&gt; which enables this behavior without the need to add a new column to the data table. All the logic stays in the graph, and you can build your URL from the contents of other columns (or from running a JMP Platform to get a preview of how it would look for the data associated with the hovered visual element).&lt;/P&gt;
&lt;P&gt;The screenshot below is from one of my examples that uses the name of the species in the Iris dataset to fetch the corresponding picture from Wikipedia.&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="Img_graphlet.JPG" style="width: 200px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16120i940EA767FD95342E/image-size/small?v=v2&amp;amp;px=200" role="button" title="Img_graphlet.JPG" alt="Img_graphlet.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want to give this feature a try and provide us some feedback, please consider joining our Early Adopter program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get more information from your Account Team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Nascif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 22:03:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-an-image-to-show-on-point-selection-or-mouse-over-in/m-p/185548#M40426</guid>
      <dc:creator>nascif_jmp</dc:creator>
      <dc:date>2019-03-08T22:03:26Z</dc:date>
    </item>
  </channel>
</rss>

