<?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: Different Links for different Bars in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66873#M2301</link>
    <description>Thanks all, &lt;BR /&gt;
&lt;BR /&gt;
As per DanH's post, I think I might have to listen to Robert and dust off the old gchart procedure. The only problem is that I ned to overlay the bars. I dont remember if gchart allows that.</description>
    <pubDate>Wed, 25 Aug 2010 13:35:07 GMT</pubDate>
    <dc:creator>Jaime</dc:creator>
    <dc:date>2010-08-25T13:35:07Z</dc:date>
    <item>
      <title>Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66869#M2297</link>
      <description>Hi all, &lt;BR /&gt;
&lt;BR /&gt;
Using a sgplot to display 3 bars. I want each bar to link to a different URL. For some reason my sgplot only creates the link for the lasst bar.&lt;BR /&gt;
&lt;BR /&gt;
Below is my code. The 3rd bar, reponse=Handled, is the only one working.&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=Current_Pipeline  (where=(Week_Ending_On&amp;gt;today()-15*7 and Week_Ending_On&lt;TODAY&gt;
	vbar Week_Ending_On/ response=Created    nooutline barwidth=.9 fillattrs=(color=cxA6D96A) datalabel url=urlString;&lt;BR /&gt;
	vbar Week_Ending_On/ response=StillOpen  nooutline barwidth=.9 fillattrs=(color=black) datalabel  url=urlOpen;&lt;BR /&gt;
	vbar Week_Ending_On/ response=Handled 	  nooutline barwidth=.9 fillattrs=(color=cxF46D43) datalabel  url=urlHandled;&lt;BR /&gt;
	yaxis display=(nolabel) ;&lt;BR /&gt;
	xaxis display=(nolabel) grid;&lt;BR /&gt;
	keylegend /location =inside position=topright noborder location=outside ;&lt;BR /&gt;
format  Week_Ending_On mmddyy5.;&lt;BR /&gt;
run;&lt;/TODAY&gt;</description>
      <pubDate>Tue, 24 Aug 2010 21:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66869#M2297</guid>
      <dc:creator>Jaime</dc:creator>
      <dc:date>2010-08-24T21:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66870#M2298</link>
      <description>Hey Jaime,&lt;BR /&gt;
&lt;BR /&gt;
Currently, the categorical charts (bar, line, and dot) are able to use only one URL column per graph. However, if I interpret your intent correctly, you should be able to combine your three URL columns into the same column and reference that column from all three bar chart statements. Let me know if that works for you.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Tue, 24 Aug 2010 21:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66870#M2298</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-08-24T21:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66871#M2299</link>
      <description>Hi:&lt;BR /&gt;
  Remember that when you post code to the forum anything related to HTML tags can throw off the posting mechanism and truncate your post (anything meaning &amp;lt; and &amp;gt; symbols -- which are also part of HTML tags).&lt;BR /&gt;
 &lt;BR /&gt;
  This previous forum posting explains how to protect your symbols&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Using &amp;amp;lt; for &amp;lt; and &amp;amp;gt; for &amp;gt; as well as how to use se the [pre] and [/pre] tags around your code and output in order to maintain indenting and spacing.&lt;BR /&gt;
&lt;BR /&gt;
It's not clear to me what's up with your bars -- are you overlaying the bars or having them side-by-side? It seems as though the last URL is the one used -- which is what I would expect if you were overlaying the bars, one on top of the other.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 24 Aug 2010 21:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66871#M2299</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-24T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66872#M2300</link>
      <description>How about use gchart?  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd23/aaaindex.htm" target="_blank"&gt;http://robslink.com/SAS/democd23/aaaindex.htm&lt;/A&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66872#M2300</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-08-25T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66873#M2301</link>
      <description>Thanks all, &lt;BR /&gt;
&lt;BR /&gt;
As per DanH's post, I think I might have to listen to Robert and dust off the old gchart procedure. The only problem is that I ned to overlay the bars. I dont remember if gchart allows that.</description>
      <pubDate>Wed, 25 Aug 2010 13:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66873#M2301</guid>
      <dc:creator>Jaime</dc:creator>
      <dc:date>2010-08-25T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Different Links for different Bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66874#M2302</link>
      <description>Here's an example where I use gchart, and produce "overlapping" bars...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd29/robslink.htm" target="_blank"&gt;http://robslink.com/SAS/democd29/robslink.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd29/robslink_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd29/robslink_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Note that I let gchart draw the first bar (back-most bar), and then I annotate the overlapping bars.  You can control the charttip/drilldowns of the gchart bars using gchart vbar's html= option, and the charttip/drilldowns of the overlapping annotated bars using the 'html' variable in the annotate data set.</description>
      <pubDate>Wed, 25 Aug 2010 13:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Different-Links-for-different-Bars/m-p/66874#M2302</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-08-25T13:45:17Z</dc:date>
    </item>
  </channel>
</rss>

