<?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 A nice Bar chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855437#M23447</link>
    <description>&lt;P&gt;I see this following bar chart that made by SAS viya I guss. Wonder if this can be done in PC SAS? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Color-Code-in-Bar-Charts/m-p/855434/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExEQU1DUE45NVdRM09afDg1NTQzNHxTVUJTQ1JJUFRJT05TfGhL?lightbox-message-images-756198=61625i42412E10EFE80815#M16893" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Color-Code-in-Bar-Charts/m-p/855434/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExEQU1DUE45NVdRM09afDg1NTQzNHxTVUJTQ1JJUFRJT05TfGhL?lightbox-message-images-756198=61625i42412E10EFE80815#M16893&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 19:22:49 GMT</pubDate>
    <dc:creator>Leef88</dc:creator>
    <dc:date>2023-01-24T19:22:49Z</dc:date>
    <item>
      <title>A nice Bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855437#M23447</link>
      <description>&lt;P&gt;I see this following bar chart that made by SAS viya I guss. Wonder if this can be done in PC SAS? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Color-Code-in-Bar-Charts/m-p/855434/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExEQU1DUE45NVdRM09afDg1NTQzNHxTVUJTQ1JJUFRJT05TfGhL?lightbox-message-images-756198=61625i42412E10EFE80815#M16893" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Color-Code-in-Bar-Charts/m-p/855434/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExEQU1DUE45NVdRM09afDg1NTQzNHxTVUJTQ1JJUFRJT05TfGhL?lightbox-message-images-756198=61625i42412E10EFE80815#M16893&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855437#M23447</guid>
      <dc:creator>Leef88</dc:creator>
      <dc:date>2023-01-24T19:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: A nice Bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855450#M23448</link>
      <description>&lt;P&gt;You can probably do something very close to this using &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p06ji2uhvayhq5n1eik2z2rf2ga8.htm" target="_self"&gt;ODS LAYOUT GRIDDED&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, do I have an example? No I don't.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855450#M23448</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-24T19:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: A nice Bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855485#M23449</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;is correct. To create multiple bar charts with different response variables in one graph, you would need to use either the Graph Template Language (GTL), or use ODS LAYOUT with the SG procedures (SGPLOT in this case). If you were using the same response variable with multiple classifiers, your best option is to use the SGPANEL procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS LAYOUT is normally applied at the page level. However, there is a trick for generating the output via ODS PRINTER such all of the output is generated in one image. I talk about this technique more in-depth in this&amp;nbsp;&lt;A title="blog post" href="https://blogs.sas.com/content/graphicallyspeaking/2022/09/10/complex-layouts-using-the-sg-procedures/" target="_self"&gt;blog post&lt;/A&gt;&amp;nbsp;. The example below demonstrates this technique using bar charts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cars.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79754i88C7C646213D25D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="cars.png" alt="cars.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options nodate nonumber;
options leftmargin="0.001in" rightmargin="0.001in";
options papersize=(7.35in 2.00in);

title "Car Statistics";
ods printer printer=png300 file="cars.png" style=htmlblue;

ods layout gridded columns=3 advance=proc
    column_gutter=0.1in row_gutter=0.1in;

ods graphics / width=2.25in noborder;

title;
proc sgplot data=sashelp.cars noopaque;
     yaxis grid;
     vbar origin / response=horsepower fillattrs=GraphData1 transparency=0.5;
run;
proc sgplot data=sashelp.cars noopaque;
     yaxis grid;
     vbar origin / response=mpg_city fillattrs=GraphData2 transparency=0.5;
run;
proc sgplot data=sashelp.cars noopaque;
     yaxis grid;
     vbar origin / response=mpg_highway fillattrs=GraphData3 transparency=0.5;
run;

ods layout end;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 22:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855485#M23449</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-01-24T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: A nice Bar chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855488#M23450</link>
      <description>&lt;P&gt;I always learn something when you write, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt; ! &lt;span class="lia-unicode-emoji" title=":blue_heart:"&gt;💙&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 23:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-nice-Bar-chart/m-p/855488#M23450</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-24T23:03:10Z</dc:date>
    </item>
  </channel>
</rss>

