<?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: a percentage-based bar graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754887#M21768</link>
    <description>&lt;P&gt;For the record, the default percentage basis is the entire graph output, including all BY-groups. To change this basis, use the PCTLEVEL option like you did set the level you want to be the basis for 100%. In SGPLOT, there are three levels: Graph (the default), BY (for BY-groups), and Group (all groups within a category = 100%). For SGPANEL, there are four levels: Graph, BY, Cell (all bars in each cell = 100%), and Group.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Jul 2021 22:06:58 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2021-07-18T22:06:58Z</dc:date>
    <item>
      <title>a percentage-based bar graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754820#M21765</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a categorical variable in my data. I am trying to draw a bar graph for this variable based on the percents. The below code is working but the sum of percentages is not 100%. I don't know how it is calculating this. Is there an easy way to draw a percentage-based bar graph?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=alt_listening;
title "Proficiency Level: List 1-2";
vbar listening_pl / stat=pct transparency=0.25 fillattrs=(color=black) ;
yaxis label= 'Percent' ;
xaxis label= 'Proficiency Level';
by cluster_listening;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 05:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754820#M21765</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-07-18T05:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: a percentage-based bar graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754822#M21766</link>
      <description>Hello,&lt;BR /&gt;Please can you also include your data or an example of your data?</description>
      <pubDate>Sun, 18 Jul 2021 06:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754822#M21766</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-07-18T06:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: a percentage-based bar graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754823#M21767</link>
      <description>Thank you for your response. I think I got it. I modified my code as below and it worked.&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=alt_listening PCTLEVEL=BY;&lt;BR /&gt;title "Proficiency Level: List 1-2";&lt;BR /&gt;vbar listening_pl / stat=pct  transparency=0.25 fillattrs=(color=black)  ;&lt;BR /&gt;yaxis label= 'Percent' ;&lt;BR /&gt;xaxis label= 'Proficiency Level';&lt;BR /&gt; by cluster_listening;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thank you again</description>
      <pubDate>Sun, 18 Jul 2021 06:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754823#M21767</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-07-18T06:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: a percentage-based bar graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754887#M21768</link>
      <description>&lt;P&gt;For the record, the default percentage basis is the entire graph output, including all BY-groups. To change this basis, use the PCTLEVEL option like you did set the level you want to be the basis for 100%. In SGPLOT, there are three levels: Graph (the default), BY (for BY-groups), and Group (all groups within a category = 100%). For SGPANEL, there are four levels: Graph, BY, Cell (all bars in each cell = 100%), and Group.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 22:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/a-percentage-based-bar-graph/m-p/754887#M21768</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-07-18T22:06:58Z</dc:date>
    </item>
  </channel>
</rss>

