<?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: having html links to a graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20384#M488</link>
    <description>If you have SAS 9.2, you can use a VLINE (summarized) or SERIES (continuous)  line plot that will give you drilldown ability across the whole line. Here is a simple example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if (sex='F') then url="http://www.google.com";&lt;BR /&gt;
else url="http://www.bing.com";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods graphics / imagemap=on;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html;&lt;BR /&gt;
proc sgplot data=test;&lt;BR /&gt;
vline age / response=height stat=mean group=sex url=url lineattrs=(pattern=solid thickness=2);&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 22 Oct 2010 00:07:53 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-10-22T00:07:53Z</dc:date>
    <item>
      <title>having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20381#M485</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I want to be able to click on a line on a graph and (for arguments sake) go to google.com or yahoo.com. I've attached a link to Robert Allison's code. My question is how do I do the same for a line graph (So far im using Gplot). He's using a Proc Gchart.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Sachin &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd23/overlib.htm" target="_blank"&gt;http://robslink.com/SAS/democd23/overlib.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd23/overlib_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd23/overlib_info.htm&lt;/A&gt;</description>
      <pubDate>Thu, 21 Oct 2010 04:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20381#M485</guid>
      <dc:creator>SachinRuk</dc:creator>
      <dc:date>2010-10-21T04:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20382#M486</link>
      <description>In general, with SAS/GRAPH gplot, you can't have drilldowns on the line segment (interpolation between the markers).&lt;BR /&gt;
&lt;BR /&gt;
You can add drilldowns to the markers, using the same technique as for bar charts (one caveat is that you have to show markers on your line to do that).&lt;BR /&gt;
&lt;BR /&gt;
You can get a bit "clever", making the markers the same color as the background, and/or annotating 'invisible' areas with drilldowns (corresponding to the lines), etc - but i usually find that showing markers on the lines, and adding drilldowns to those markers, is the best way to go.</description>
      <pubDate>Thu, 21 Oct 2010 12:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20382#M486</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-10-21T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20383#M487</link>
      <description>Hi Robert,&lt;BR /&gt;
&lt;BR /&gt;
I know this seems like a stupid question but, how do you add markers. Im new to SAS.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your patience,&lt;BR /&gt;
Sachin</description>
      <pubDate>Thu, 21 Oct 2010 23:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20383#M487</guid>
      <dc:creator>SachinRuk</dc:creator>
      <dc:date>2010-10-21T23:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20384#M488</link>
      <description>If you have SAS 9.2, you can use a VLINE (summarized) or SERIES (continuous)  line plot that will give you drilldown ability across the whole line. Here is a simple example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if (sex='F') then url="http://www.google.com";&lt;BR /&gt;
else url="http://www.bing.com";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods graphics / imagemap=on;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html;&lt;BR /&gt;
proc sgplot data=test;&lt;BR /&gt;
vline age / response=height stat=mean group=sex url=url lineattrs=(pattern=solid thickness=2);&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 22 Oct 2010 00:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20384#M488</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-10-22T00:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20385#M489</link>
      <description>sorry dan,&lt;BR /&gt;
&lt;BR /&gt;
only have 9.1.3 :(... so back to the markers story.&lt;BR /&gt;
&lt;BR /&gt;
sachin</description>
      <pubDate>Fri, 22 Oct 2010 03:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20385#M489</guid>
      <dc:creator>SachinRuk</dc:creator>
      <dc:date>2010-10-22T03:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: having html links to a graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20386#M490</link>
      <description>Ok - back to a good-old gplot line plot ... with markers! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here is an example of a gplot scatter plot - the 'markers' are the dots:&lt;BR /&gt;
&lt;BR /&gt;
   &lt;A href="http://robslink.com/SAS/democd23/scat.htm" target="_blank"&gt;http://robslink.com/SAS/democd23/scat.htm&lt;/A&gt;&lt;BR /&gt;
   &lt;A href="http://robslink.com/SAS/democd23/scat_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd23/scat_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The shape of the markers is specified in the 'symbol' statement:&lt;BR /&gt;
&lt;BR /&gt;
   symbol1 v=dot height=8 color=cx43a2ca;&lt;BR /&gt;
&lt;BR /&gt;
If you want lines drawn between the dots, you can add the i= (interpolation) option...&lt;BR /&gt;
&lt;BR /&gt;
   symbol1 v=dot height=8 i=join color=cx43a2ca;&lt;BR /&gt;
&lt;BR /&gt;
One other tip - you'll want to make sure your data is sorted in the order you want the dots connected.</description>
      <pubDate>Fri, 22 Oct 2010 12:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/having-html-links-to-a-graph/m-p/20386#M490</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-10-22T12:11:55Z</dc:date>
    </item>
  </channel>
</rss>

