<?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: Proc Gcharts HBAR in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9272#M104</link>
    <description>There are basically 2 ways to plot this data that come to mind - I'm sure &lt;BR /&gt;
exactly which way you're wanting, so I included both...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data foo;&lt;BR /&gt;
input Grp   C_Var $ G_FREQ C_var_pct;&lt;BR /&gt;
datalines;&lt;BR /&gt;
 1      X      1000       .50&lt;BR /&gt;
 1      Y      1000       .60&lt;BR /&gt;
 1      Z      1000       .70&lt;BR /&gt;
 2      X      2000       .40&lt;BR /&gt;
 2      Y      2000       .60&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=foo;&lt;BR /&gt;
hbar grp / discrete type=sum sumvar=c_var_pct subgroup=c_var nostats;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=foo;&lt;BR /&gt;
hbar c_var / type=sum sumvar=c_var_pct group=grp patternid=midpoint nostats;&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 14 Feb 2011 13:13:18 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2011-02-14T13:13:18Z</dc:date>
    <item>
      <title>Proc Gcharts HBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9271#M103</link>
      <description>I have a chart variable and a group variable,i need to create Horizontal bar charts out of those. &lt;BR /&gt;
&lt;BR /&gt;
My data looks like these&lt;BR /&gt;
&lt;BR /&gt;
Grp   C_Var G_FREQ C_var_pct&lt;BR /&gt;
 1      X       1000       50%&lt;BR /&gt;
 1      Y      1000       60%&lt;BR /&gt;
 1      Z      1000        70%&lt;BR /&gt;
 2      X       2000       40%&lt;BR /&gt;
 2      Y      2000        60%&lt;BR /&gt;
&lt;BR /&gt;
Grp is the Group Variable and C_Var is the Chart Variable&lt;BR /&gt;
&lt;BR /&gt;
The Length of the bars should reflect the C_var_pct  and value of variables G_FREQ and C_var_pct should be present in the outputs.&lt;BR /&gt;
&lt;BR /&gt;
Can you guys help me out on this.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: RKarthik

Message was edited by: RKarthik</description>
      <pubDate>Mon, 14 Feb 2011 11:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9271#M103</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-14T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gcharts HBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9272#M104</link>
      <description>There are basically 2 ways to plot this data that come to mind - I'm sure &lt;BR /&gt;
exactly which way you're wanting, so I included both...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data foo;&lt;BR /&gt;
input Grp   C_Var $ G_FREQ C_var_pct;&lt;BR /&gt;
datalines;&lt;BR /&gt;
 1      X      1000       .50&lt;BR /&gt;
 1      Y      1000       .60&lt;BR /&gt;
 1      Z      1000       .70&lt;BR /&gt;
 2      X      2000       .40&lt;BR /&gt;
 2      Y      2000       .60&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=foo;&lt;BR /&gt;
hbar grp / discrete type=sum sumvar=c_var_pct subgroup=c_var nostats;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=foo;&lt;BR /&gt;
hbar c_var / type=sum sumvar=c_var_pct group=grp patternid=midpoint nostats;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 14 Feb 2011 13:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9272#M104</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-02-14T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gcharts HBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9273#M105</link>
      <description>Thanks Robert!&lt;BR /&gt;
&lt;BR /&gt;
I think my question was not clear, anyways I solved my problem using weighted statistics option in proc gchart</description>
      <pubDate>Tue, 15 Feb 2011 14:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gcharts-HBAR/m-p/9273#M105</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-15T14:54:42Z</dc:date>
    </item>
  </channel>
</rss>

