<?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: Draw bar chart by using sas ganno in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208453#M7799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, no its not clear.&amp;nbsp; I do not understand why you are restricted to using one procedure, use the right tool for the job.&amp;nbsp; From my side I would recommend that you look to using sgplot or graph template language.&amp;nbsp; These are the newest technology for creating graphical outputs and are more powerful and easy to use than previous installments.&amp;nbsp; If you need help on them Sanjay has an excellent blog showing examples:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" title="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 12:03:02 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-08-27T12:03:02Z</dc:date>
    <item>
      <title>Draw bar chart by using sas ganno</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208452#M7798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I want to draw a bar chart using fully customized annotate, using axis order 2, only the data area. The chart must drawn without using proc gchart.&lt;/P&gt;&lt;P&gt;Here is the data:&lt;/P&gt;&lt;P&gt;A 70&amp;nbsp; cxe35454&lt;/P&gt;&lt;P&gt;&amp;nbsp; B 60&amp;nbsp; cx67549A&lt;/P&gt;&lt;P&gt;&amp;nbsp; C 130 cx22ebe8&lt;/P&gt;&lt;P&gt;&amp;nbsp; D 40&amp;nbsp; cx25eb22&lt;/P&gt;&lt;P&gt;&amp;nbsp; E 90&amp;nbsp; cxe8eb22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the results that I want:&lt;/P&gt;&lt;P&gt;data yoyo;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length function color $8 text $30;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain xsys ysys '2' hsys '3' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=20;y=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar';x=25;y=40;color='CXE35454';style='solid';line=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=30;y=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar';x=35;y=35;color='CX67549A';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=40;y=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar';x=45;y=70;color='CX22EBE8';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=50;y=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar';x=55;y=25;color='CX25EB22';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=60;y=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='bar';x=65;y=50;color='CXE8EB22';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=23;y=8;text='A';position='5';color='black';size=3;style='calibri';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=33;y=8;text='B';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=43;y=8;text='C';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=53;y=8;text='D';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=63;y=8;text='E';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='label';x=40;y=90;text="MinKhee's first bar chart";position='5';color='CX808080';style='calibri';size=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='move';x=9;y=9.8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; function='draw';x=80;y=9.8;color=black;size=0.1;line=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title j=center&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; font= 'calibri' color=CX808080 height=45pt "MinKhee's first bar chart ";&lt;/P&gt;&lt;P&gt;proc ganno annotate=yoyo;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you all understand what I meant &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 09:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208452#M7798</guid>
      <dc:creator>MinKhee</dc:creator>
      <dc:date>2015-08-27T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw bar chart by using sas ganno</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208453#M7799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, no its not clear.&amp;nbsp; I do not understand why you are restricted to using one procedure, use the right tool for the job.&amp;nbsp; From my side I would recommend that you look to using sgplot or graph template language.&amp;nbsp; These are the newest technology for creating graphical outputs and are more powerful and easy to use than previous installments.&amp;nbsp; If you need help on them Sanjay has an excellent blog showing examples:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" title="http://blogs.sas.com/content/graphicallyspeaking/"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208453#M7799</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-27T12:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Draw bar chart by using sas ganno</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208454#M7800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are looking for the annotate macros:&lt;/P&gt;&lt;P&gt;%annomac; /* before your data set to make the macros available*/&lt;/P&gt;&lt;P&gt;and use %bar to draw the bars and %label to create the labels but your X Y coordinates need to be in the data or you need to provide the logic to assign them. Maybe additional variable retained and incremented by you for x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the annotate macros may update internal variables named XLAST, YLAST, XLSTT, YLSTT that help keep track of the current drawing position.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/208454#M7800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-27T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Draw bar chart by using sas ganno</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/226298#M8190</link>
      <description>&lt;P&gt;To use xsys &amp;amp; ysys = '2', I think you need to have an actual chart, so that you have an axis for your coordinates to be inside.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case, I'd just use xsys &amp;amp; ysys = '3', and use Proc Gslide (I always use that for a 'blank' page, instead of Proc Ganno - just my personal preference).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change to the following ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;retain xsys '3' ysys '3' hsys '3' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gslide anno=yoyo;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get your custom-drawn bar chart as follows:&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/206i7A96895F0EC7FD52/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="gslide.png" title="gslide.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Draw-bar-chart-by-using-sas-ganno/m-p/226298#M8190</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-09-18T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

