<?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: Border around SAS graphic SAS 9.2 pdf destination in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302602#M10674</link>
    <description>&lt;P&gt;Useful advice . I'll keep that in mind for future graph coding. Can you give some link or document to know GTL ? I have never used it so far and it appears to be a powerful tool for graphs.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 12:28:06 GMT</pubDate>
    <dc:creator>ucvikas</dc:creator>
    <dc:date>2016-10-05T12:28:06Z</dc:date>
    <item>
      <title>Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302538#M10666</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some graphs created by gchart , gplot procedure . I want to have border around graph . I thought goptions border will de the work but I guess I miss something as it does not work for PDF destination . I see border in SAS report tab in SAS EG but when I open pdf file . it does not have graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea how to get borders ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use SAS 9.2 + linux OS . see example code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;********************************************************;&lt;/P&gt;
&lt;P&gt;ods pdf file= "/tmp/test.pdf";&lt;/P&gt;
&lt;P&gt;goptions reset=all border ;&lt;BR /&gt;title "US Electric Power - Revenue and Generation Sources";&lt;/P&gt;
&lt;P&gt;proc gchart data=sashelp.electric (where=(year &amp;gt;= 2000)) ;&lt;BR /&gt; vbar year / discrete sumvar=Revenue subgroup=Customer;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;******************************************************;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 08:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302538#M10666</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2016-10-05T08:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302545#M10667</link>
      <description>Have you tried using Goptions?&lt;BR /&gt;&lt;BR /&gt;Goptions Border;</description>
      <pubDate>Wed, 05 Oct 2016 09:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302545#M10667</guid>
      <dc:creator>RB1Kenobi</dc:creator>
      <dc:date>2016-10-05T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302549#M10669</link>
      <description>&lt;P&gt;Eeek, why are you using gchart to make graphs, move to sgplot/GTL.&lt;/P&gt;
&lt;P&gt;Your code seems incorrect, try:&lt;/P&gt;
&lt;P&gt;ods graphics / reset=all height=15cm width=22cm border;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302549#M10669</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-05T09:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302553#M10671</link>
      <description>&lt;P&gt;Can you please explain what was incorrect in code ? I took it as sample from SAS website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried your suggestion to use ods graphics . It did not work ( no border in pdf file) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If moving to sgplot or/GTL will solve the problem then I can try but creating all the graphs again&amp;nbsp;using diffrent procedure&amp;nbsp;will take sometime.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302553#M10671</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2016-10-05T09:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302554#M10672</link>
      <description>&lt;P&gt;yes . You can see in the sample code&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302554#M10672</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2016-10-05T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302556#M10673</link>
      <description>&lt;P&gt;Afraid I don't know then. &amp;nbsp;I only use GTL based procedures and that ods statement turns the border on and off no problems. &amp;nbsp;Sgplot and GTL is the most up to date version of the graphing system , for many years now. &amp;nbsp;Its is far more flexible and easy to use, hence why I suggest it. &amp;nbsp;Anyways, maybe someone else can help you with it as is.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302556#M10673</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-05T09:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302602#M10674</link>
      <description>&lt;P&gt;Useful advice . I'll keep that in mind for future graph coding. Can you give some link or document to know GTL ? I have never used it so far and it appears to be a powerful tool for graphs.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302602#M10674</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2016-10-05T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302617#M10675</link>
      <description>&lt;P&gt;Sure, the best resource I have found is Sanjay's blog here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It contains examples of every graph you can imagine, with proc template code or sgplot. &amp;nbsp;Very in depth and insightfull. &amp;nbsp;There are many pages, so scrolling through is good to see, and you can search for keywords.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 12:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302617#M10675</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-05T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302644#M10676</link>
      <description>&lt;P&gt;Thanks, RW9 for your endorsement of &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;GraphicallySpeaking&lt;/A&gt;. &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The newest article in the blog above is meant for users like you who are new to the ODS Graphics procedures. &amp;nbsp;I recommend starting with SGPLOT procedure, and move to GTL later as you need. &amp;nbsp;Note: &amp;nbsp;One procedure - SGPLOT does everything, plots, bar charts, and more. &amp;nbsp;Here is the comparable code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf file= "c:\test.pdf";&lt;BR /&gt;ods html close;&lt;BR /&gt;title "US Electric Power - Revenue and Generation Sources";&lt;BR /&gt;proc sgplot data=sashelp.electric (where=(year &amp;gt;= 2000)) ;&lt;BR /&gt;&amp;nbsp; vbar year / response=Revenue group=Customer;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/302644#M10676</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-10-05T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Border around SAS graphic SAS 9.2 pdf destination</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/307116#M10781</link>
      <description>&lt;P&gt;Since the goptions border isn't working in this situation, you could "draw" a border using annotate, as a work-around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a simple example showing how to do that - you should be able to re-use this anno_border dataset easily with your gchart. Feel free to modify the color and size (width) of the line - I'm using red just so it's more obvious which line it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data anno_border;&lt;BR /&gt;xsys='3'; ysys='3'; hsys='3'; when='a';&lt;BR /&gt;function='move'; x=0; y=0; output;&lt;BR /&gt;function='box'; x=100; y=100; line=0; style='empty'; color='red'; size=1.0; output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gchart data=sashelp.class &lt;STRONG&gt;anno=anno_border&lt;/STRONG&gt;;&lt;BR /&gt;hbar name / type=sum sumvar=height descending;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5476iFC7C117B74DD63B2/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="gchart.png" title="gchart.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Border-around-SAS-graphic-SAS-9-2-pdf-destination/m-p/307116#M10781</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-10-25T13:12:31Z</dc:date>
    </item>
  </channel>
</rss>

