<?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: Bar Chart with percentage in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328625#M1806</link>
    <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 23:41:12 GMT</pubDate>
    <dc:creator>MiroTrindade</dc:creator>
    <dc:date>2017-01-30T23:41:12Z</dc:date>
    <item>
      <title>Bar Chart with percentage</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328242#M1799</link>
      <description>&lt;P&gt;Hey guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know how or if it´s possible to draw Bar Charts showing the results in percentage instead of frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 17:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328242#M1799</guid>
      <dc:creator>MiroTrindade</dc:creator>
      <dc:date>2017-01-28T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with percentage</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328244#M1800</link>
      <description>&lt;P&gt;The option isn't there. You have to pre-compute the percentages. See:&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2012/12/03/show-percentages-for-bar-charts-with-proc-sgplot.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2012/12/03/show-percentages-for-bar-charts-with-proc-sgplot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you're on SAS 9.4. Then you could modify the code that prepares the graph. e.g.:&lt;/P&gt;
&lt;PRE&gt;ods graphics / reset imagemap;

/*--SGPLOT proc statement--*/
proc sgplot data=SASHELP.CLASS;
	/*--Bar chart settings--*/
	vbar Age / stat=percent datalabel name='Bar';

	/*--Response Axis--*/
	yaxis grid;
run;

ods graphics / reset;&lt;/PRE&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 18:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328244#M1800</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-01-28T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with percentage</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328625#M1806</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 23:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Bar-Chart-with-percentage/m-p/328625#M1806</guid>
      <dc:creator>MiroTrindade</dc:creator>
      <dc:date>2017-01-30T23:41:12Z</dc:date>
    </item>
  </channel>
</rss>

