<?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: How to create the bar chart for my requirement using proc gchart? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264567#M9502</link>
    <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt; Allaluiah&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;If you are new to SAS, it is worthwhile to attend a SAS Training course, to get all the fundamental concepts right. This makes reading the code examples you will find everywhere a lot easier.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;For all things related to ODS Graphics I suggest you follow the blog &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt; it has lots and lots of great examples and tips and tricks on how to best use ODS Graphics.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;For SAS/GRAPH read the blogs entries from&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy﻿&lt;/a&gt;&amp;nbsp; &lt;A href="http://blogs.sas.com/content/sastraining/author/robertallison/" target="_blank"&gt;http://blogs.sas.com/content/sastraining/author/robertallison/&lt;/A&gt; one can only wonder what is possible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;The thing is, one has to remember. But since there is always a story around it, this makes it a lot easier, at least for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 16:05:56 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2016-04-18T16:05:56Z</dc:date>
    <item>
      <title>How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264416#M9498</link>
      <description>&lt;P&gt;I have attached input dataset sample that has values for the bar chart and I have also attached the wanted barchart sample.&lt;/P&gt;
&lt;P&gt;In the bar chart , I need find out from 2007 to 2010, how many times(frequency) GY1, GY2 and GY3 are ranked in each year (shown as numbers under bars on the graph attached). And within each year’s bars I’d also like to know what the proportions are respectively that GY1, GY2 and GY3 are ranked as 1&lt;SUP&gt;st&lt;/SUP&gt;, 2&lt;SUP&gt;nd&lt;/SUP&gt; and 3&lt;SUP&gt;rd&lt;/SUP&gt; (shown as percentages within each bars).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2016 15:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264416#M9498</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2016-04-17T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264428#M9499</link>
      <description>&lt;P&gt;Please consider adding data and image directly to your post. Not everyone can download attachments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2016 17:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264428#M9499</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-17T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264514#M9500</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not exactly the graph your are looking for, but it is a start, and it has all the information you are looking for. I have used Proc SGPANEL instead of Proc GCHART.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;  
  infile cards dlm=",";
  input
    Year
    Ranking
    Group_Y_Name $ 
    cnt_gy_name
  ;
  cards;
2007,1,GY1,2
2007,2,GY1,1
2007,1,GY2,2
2007,2,GY2,2
2007,1,GY3,1
2007,2,GY3,1
2007,3,GY3,1
2008,1,GY1,1
2008,2,GY1,1
2008,3,GY1,1
2008,1,GY2,1
2008,2,GY2,2
2008,1,GY3,1
2008,3,GY3,1
2009,2,GY1,3
2009,3,GY1,1
2009,1,GY2,4
2009,1,GY3,1
2009,2,GY3,1
2009,3,GY3,1
2010,1,GY1,2
2010,2,GY1,2
2010,1,GY2,4
2010,2,GY2,1
2010,1,GY3,1
2010,2,GY3,3
;

proc sgpanel data=have pctlevel=group;
  styleattrs
    datacolors=(cxfddcbb cxaddfe6 cxf5f8c9)
    datacontrastcolors=(cxfddcbb cxaddfe6 cxf5f8c9)
  ;
  panelby Group_Y_Name / 
    layout=columnlattice 
    colheaderpos=bottom
    novarname
    noborder
      
  ;
  vbar year / 
    response=cnt_gy_name
    group=Ranking stat=percent
    seglabel seglabelformat=percent9.
  ;
  colaxistable  cnt_gy_name;

  keylegend / noborder  TITLE=" ";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264514#M9500</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-04-18T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264561#M9501</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller﻿&lt;/a&gt;&amp;nbsp;Very nice Sir, Thank you so much. That pretty much did it for me. It seems like you have loads of experience in SAS. How did you manage to read, understand and remember all these options. Is there a method or technique to learn SAS more effectively? I would welcome your suggestions plz&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264561#M9501</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2016-04-18T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264567#M9502</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt; Allaluiah&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;If you are new to SAS, it is worthwhile to attend a SAS Training course, to get all the fundamental concepts right. This makes reading the code examples you will find everywhere a lot easier.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;For all things related to ODS Graphics I suggest you follow the blog &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt; it has lots and lots of great examples and tips and tricks on how to best use ODS Graphics.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;For SAS/GRAPH read the blogs entries from&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy﻿&lt;/a&gt;&amp;nbsp; &lt;A href="http://blogs.sas.com/content/sastraining/author/robertallison/" target="_blank"&gt;http://blogs.sas.com/content/sastraining/author/robertallison/&lt;/A&gt; one can only wonder what is possible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;The thing is, one has to remember. But since there is always a story around it, this makes it a lot easier, at least for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/264567#M9502</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-04-18T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/674806#M20332</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt; - Many Thanks for this!&lt;BR /&gt;Also could you please tell us how can we achieve the same output using Proc GCHART?</description>
      <pubDate>Wed, 05 Aug 2020 18:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/674806#M20332</guid>
      <dc:creator>rakul</dc:creator>
      <dc:date>2020-08-05T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the bar chart for my requirement using proc gchart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/675554#M20363</link>
      <description>&lt;P&gt;See a gchart solution in rakul's thread. Are you two working together, or just happen to be wanting the same graph?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Need-to-change-labels-in-proc-gchart-vbar/td-p/674945" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Need-to-change-labels-in-proc-gchart-vbar/td-p/674945&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 11:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-the-bar-chart-for-my-requirement-using-proc-gchart/m-p/675554#M20363</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-08-10T11:12:50Z</dc:date>
    </item>
  </channel>
</rss>

