<?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: re: keep bar widths the same in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/694701#M20605</link>
    <description>&lt;P&gt;Not sure how you can do this with GCHART or SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, one way to do this would be to use the SGPANEL procedure with PANELBY=AcademinYearBeg and the "BY variable".&amp;nbsp; &amp;nbsp;This will create a panel of graph cells, one for each AcademicYear x BY variable with their values in the headers.&amp;nbsp; Default is UNISCALE=ALL, so this will show bars for all Status values in each cell with equal bar widths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set ROWS=1 to get only one row or cells (all the Year values) in per output graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=8.11&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p17wwoehcyc6mxn1hpcgxy8ixw6w.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=8.11&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p17wwoehcyc6mxn1hpcgxy8ixw6w.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 21:28:18 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2020-10-27T21:28:18Z</dc:date>
    <item>
      <title>re: keep bar widths the same</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/693567#M20589</link>
      <description>&lt;P&gt;Hi, I am trying to create bar graphs. the problem that I am having is that width of the bars increase in width when there is no data for some of the academic years. I would like to keep the width of the bars the same irrespective of whether there is missing data for any of the academic years. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;title1 "Annual Summary Data Bar Chart";
	pattern1 v=solid color=red;
 	pattern2 v=solid c=blue;
	pattern3 v=solid c=green;
 	pattern4 v=solid c=orange;

Axis1 style=1 width=1 minor=none label=(height=4pt font="arial/bold" angle=90 "Number of Students") value=(height=4pt font="arial" /*"0%" "10%" "20%" "30%" "40%" "50%" "60%" "70%" "80%" "90%" "100%"*/) /*order=0 to 100 by 10*/;
Axis2 style=1 width=2 label=(height=4pt font="arial/bold" "Status") value=(height=4pt font="arial" "Applications" "Enrolled" "Completed" "Graduated");
Axis3 style=1 width=2 label=(height=4pt font="arial/bold" "Academic Year") value=(height=4pt font="arial");

proc gchart data=List205;
	vbar Status / discrete sumvar=UniqueNumberStudents subgroup=Status group=AcademicYearBeg type=sum outside=sum nolegend
		coutline=black raxis=axis1 maxis=axis2 gaxis=axis3 woutline=1 patternid=subgroup gspace=0.5 space=0.25;
	by 'Initial Program'n;
run; 
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 17:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/693567#M20589</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2020-10-22T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: re: keep bar widths the same</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/694701#M20605</link>
      <description>&lt;P&gt;Not sure how you can do this with GCHART or SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, one way to do this would be to use the SGPANEL procedure with PANELBY=AcademinYearBeg and the "BY variable".&amp;nbsp; &amp;nbsp;This will create a panel of graph cells, one for each AcademicYear x BY variable with their values in the headers.&amp;nbsp; Default is UNISCALE=ALL, so this will show bars for all Status values in each cell with equal bar widths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set ROWS=1 to get only one row or cells (all the Year values) in per output graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=8.11&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p17wwoehcyc6mxn1hpcgxy8ixw6w.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=8.11&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p17wwoehcyc6mxn1hpcgxy8ixw6w.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 21:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/694701#M20605</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2020-10-27T21:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: re: keep bar widths the same</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/695016#M20618</link>
      <description>&lt;P&gt;Thanks Jay for your help...very helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 20:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/re-keep-bar-widths-the-same/m-p/695016#M20618</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2020-10-28T20:12:08Z</dc:date>
    </item>
  </channel>
</rss>

