<?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: Using PROC GPLOT to produce PDF files with a mouseover text on individual plot symbols in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118555#M4536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for sharing this tip.&amp;nbsp; I believe that the HTML= option was available in earlier releases as well - perhaps as beta (?).&amp;nbsp; BTW there is a missing semi-colon on the second comment in the first DATA step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 06:54:39 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2012-11-08T06:54:39Z</dc:date>
    <item>
      <title>Using PROC GPLOT to produce PDF files with mouseover text on individual plot symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118552#M4533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I would like to share a technique I discovered for producing mouseover text in PDF files created by PROC GPLOT. In SAS 9.2 the PROC GPLOT option&amp;nbsp; “HTML=” was introduced. This option allows plotted symbols to link to an HTML destination. The technique shown in the program below manipulates this option to provide a mouseover feature similar to that available in ODS HTML. The output PDF file is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Author: Bill Sukloff;&lt;/P&gt;&lt;P&gt;* Date: 2012-11-06&lt;/P&gt;&lt;P&gt;* Description: For PDF files, uses the option introduced in SAS 9.2 GPLOT of "HTML=" to display text when the mouse hovers over a plotted symbol;&lt;/P&gt;&lt;P&gt;* Caution: this feature may not work in some PDF readers (tested only in Adobe Reader);&lt;/P&gt;&lt;P&gt;DATA class_with_anno;&lt;/P&gt;&lt;P&gt;SET sashelp.class;&lt;/P&gt;&lt;P&gt;LENGTH anno_link $ 30;&lt;/P&gt;&lt;P&gt;* Normally you start the href text string with "http:". I found that replacing "http:" with "&amp;gt;:" looked nice and still resulted in the Adobe Reader interpreting the text string as an HTML link;&lt;/P&gt;&lt;P&gt;* Another option is to use a text string which simulates an arrow: "--&amp;gt;:";&lt;/P&gt;&lt;P&gt;IF&amp;nbsp;&amp;nbsp; name NE ''&lt;/P&gt;&lt;P&gt;THEN anno_link = "href='&amp;gt;:"!!TRIM(LEFT(name))!!"'";&lt;/P&gt;&lt;P&gt;ELSE anno_link = "href='&amp;gt;:No name'";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;OPTIONS orientation=landscape PAPERSIZE=legal NODATE NONUMBER;&lt;/P&gt;&lt;P&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;ODS PDF FILE='c:\temp\sasgraph_pdf_example_mouseover.pdf' style=BarrettsBlue;&lt;/P&gt;&lt;P&gt;TITLE1 'SAS/Graph: PDF Mouseover using fake HTML links';&lt;/P&gt;&lt;P&gt;FOOTNOTE1 'Note: Place your mouse cursor over a plot symbol for information about the data value';&lt;/P&gt;&lt;P&gt;PROC GPLOT DATA=class_with_anno;&lt;/P&gt;&lt;P&gt;PLOT height * weight = sex&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; HTML=anno_link&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;ODS PDF CLOSE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 16:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118552#M4533</guid>
      <dc:creator>Bill_in_Toronto</dc:creator>
      <dc:date>2012-11-06T16:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC GPLOT to produce PDF files with a mouseover text on individual plot symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118553#M4534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice and thanks for sharing.&amp;nbsp; I just sent you (well, hopefully it was your email address I found on the web) an email asking if you would be interested in turning this post into a 10-minute presentation for our upcoming (December 14, 2012) Toronto Area SAS Society meeting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 18:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118553#M4534</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-06T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC GPLOT to produce PDF files with a mouseover text on individual plot symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118554#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure, thanks for the offer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118554#M4535</guid>
      <dc:creator>Bill_in_Toronto</dc:creator>
      <dc:date>2012-11-07T01:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using PROC GPLOT to produce PDF files with a mouseover text on individual plot symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118555#M4536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for sharing this tip.&amp;nbsp; I believe that the HTML= option was available in earlier releases as well - perhaps as beta (?).&amp;nbsp; BTW there is a missing semi-colon on the second comment in the first DATA step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 06:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-PROC-GPLOT-to-produce-PDF-files-with-mouseover-text-on/m-p/118555#M4536</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2012-11-08T06:54:39Z</dc:date>
    </item>
  </channel>
</rss>

