<?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 template/proc sgrender stacked bar chart. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365017#M12689</link>
    <description>&lt;P&gt;somthing like this.&lt;/P&gt;&lt;P&gt;with c=4,5,7,8&lt;/P&gt;&lt;P&gt;b=2,1,3,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was thinking i could have totalbc as a new variable, then group=c, group=b but the grouping isn't working&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13912iF015C4A39BC342D8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
    <pubDate>Wed, 07 Jun 2017 14:41:26 GMT</pubDate>
    <dc:creator>emcw</dc:creator>
    <dc:date>2017-06-07T14:41:26Z</dc:date>
    <item>
      <title>Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364724#M12668</link>
      <description>&lt;P&gt;I am trying to create a stacked bar chart with proc template and sgrender&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the variable that i want on the top part of the stack will only work on the bottom:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have&lt;/P&gt;&lt;P&gt;barchart x=a y=b&lt;/P&gt;&lt;P&gt;barchart x=a y= c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to be c on top but it only works with b on top.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364724#M12668</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-06T20:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364731#M12669</link>
      <description>&lt;P&gt;show your entire code and some example data to show the result you get and hopefully some way to show what you want to get (image is fine PNG, GIF what ever, Excel not so fine)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Order of statements in the template, order of data and data values may have some pretty complex interactions.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364731#M12669</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-06T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364733#M12670</link>
      <description>&lt;P&gt;Proc template;&lt;BR /&gt;define statgraph Graph;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout overlay/&lt;BR /&gt;xaxisopts=(name = 'bin_label' label='a' labelattrs=(size=12pt weight=bold)tickvalueattrs=(size=10))&lt;BR /&gt;yaxisopts=(name = 'b' label='b' linearopts=(tickvalueformat=comma8.) labelattrs=(size=12pt weight=bold)tickvalueattrs=(size=10))&lt;BR /&gt;y2axisopts=(name='pct_row' label='c' labelattrs=(size=12pt weight=bold)tickvalueattrs=(size=10));&lt;BR /&gt;barchart x= a. y=b/ fillattrs=(color=lightgreen) name='data1' &amp;nbsp;barwidth=0.65 barlabelattrs=(size=10pt);&lt;BR /&gt;barchart x= a&amp;nbsp;y=c / fillattrs=(color=gold) name='data2'' barwidth=0.65 barlabelattrs=(size=10pt );&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364733#M12670</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-06T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364735#M12671</link>
      <description>&lt;P&gt;data is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the sgrender code used is?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364735#M12671</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-06T20:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364736#M12672</link>
      <description>&lt;P&gt;While you say "Stacked" bar chart, you are showing code that will generate "Overlaid" bars. &amp;nbsp;Since y=c is specified later, it will be drawn later, overlaid on the y=b bar. &amp;nbsp;The bar charts are drawn in the order you specify them. &amp;nbsp;If you want y=b layered on top, put it later in the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This bar chart is not "Stacked". &amp;nbsp;To get a stacked bar chart, use the GROUP option. &amp;nbsp;The group values will be stacked by default. &amp;nbsp;To get side-by-side bars, use GROUPDISPLAY=CLUSTER. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364736#M12672</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-06-06T20:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364739#M12673</link>
      <description>&lt;P&gt;Thanks, but the variables are really able to be grouped. they are two separate columns&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364739#M12673</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-06T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364741#M12674</link>
      <description>&lt;P&gt;IMO it's easier to restructure data than to modify a template.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130475"&gt;@emcw&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks, but the variables are really able to be grouped. they are two separate columns&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364741#M12674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-06T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364742#M12675</link>
      <description>&lt;P&gt;Are you trying to stack C on top of B in the same bar?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA PLEASE.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364742#M12675</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-06T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364744#M12676</link>
      <description>&lt;P&gt;Yes that's right. Id prefer not to share the data&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364744#M12676</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-06T20:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364746#M12677</link>
      <description>&lt;P&gt;Unlike Excel, two separate columns cannot be stacked in GTL or SGPLOT. You can place them side by side using DISCRETEOFFSET. To stack the values, you have to change the structure, and convert the 2-column data into a group and response data. &amp;nbsp; &amp;nbsp;You can use PROC TRANSPOSE, or just Data Step as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data b;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set a;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; keep&amp;nbsp;a Group Value;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Group='B'; Value=b; output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Group='C'; Value=c; output;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364746#M12677</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-06-06T21:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364747#M12678</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130475"&gt;@emcw&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes that's right. Id prefer not to share the data&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;MAKE FAKE DATA. We don't need real data, just data that looks like what your is and can mimic it. We all have confidential information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364747#M12678</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-06T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364938#M12686</link>
      <description>&lt;P&gt;The group won't work because I need the count.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;c=4,9,5,8&lt;/P&gt;&lt;P&gt;b=2,1,3,2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with b on top, the one with lower value.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/364938#M12686</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-07T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365013#M12688</link>
      <description>&lt;P&gt;It would be easier and faster to help if you include a picture of what you want, and your code with a (fake) data set (in code). &amp;nbsp;Which release of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365013#M12688</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-06-07T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365017#M12689</link>
      <description>&lt;P&gt;somthing like this.&lt;/P&gt;&lt;P&gt;with c=4,5,7,8&lt;/P&gt;&lt;P&gt;b=2,1,3,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was thinking i could have totalbc as a new variable, then group=c, group=b but the grouping isn't working&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13912iF015C4A39BC342D8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365017#M12689</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-07T14:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365022#M12690</link>
      <description>&lt;P&gt;See this &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/09/07/bar-charts-with-stacked-and-cluster-groups/" target="_blank"&gt;article &lt;/A&gt;on how to create such a graph. &amp;nbsp;The data needs to be in "Grouped" form as in SASHELP.PRDSALE.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365022#M12690</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-06-07T14:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365657#M12724</link>
      <description>The data also involves dates for the x axis. I think that is the issue. For the two groups theres a data point in each.</description>
      <pubDate>Fri, 09 Jun 2017 13:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/365657#M12724</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-09T13:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc template/proc sgrender stacked bar chart.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/366519#M12749</link>
      <description>&lt;P&gt;I was able to figure it out where I could have total of c+b as the first y variable, and then b on the bottom as the second variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in proc template&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xaxis&lt;/P&gt;&lt;P&gt;yaxia&lt;/P&gt;&lt;P&gt;barchart x= y=total&lt;/P&gt;&lt;P&gt;barchart x= y=bottomamount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-template-proc-sgrender-stacked-bar-chart/m-p/366519#M12749</guid>
      <dc:creator>emcw</dc:creator>
      <dc:date>2017-06-13T13:46:01Z</dc:date>
    </item>
  </channel>
</rss>

