<?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: SGPLOT in ODS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPLOT-in-ODS/m-p/765776#M39484</link>
    <description>&lt;P&gt;Thanks for providing sample data, code and what you want!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For :&lt;/P&gt;
&lt;P&gt;1. Add &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;DATALABEL&lt;/STRONG&gt;&lt;/FONT&gt; option to the VBAR statement&lt;/P&gt;
&lt;P&gt;2. Change xaxis display option to &lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;NONE&lt;/FONT&gt; &lt;/STRONG&gt;to suppress the XAXIS labels and tick marks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=WORK.plot_graph;
   vbar Exception /response=tot_pcnt group=Exception &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;datalabel&lt;/FONT&gt;&lt;/STRONG&gt; ;
   yaxis grid values=(0 to 12 by 2) display=(nolabel); 
   xaxis &lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;display=none&lt;/STRONG&gt;&lt;/FONT&gt;;
run;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394439"&gt;@YNWA1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I can't really get the right options to display my desired graph using SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code producing the below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I want the value to be displayed on top of each bar ( in red)&lt;/P&gt;
&lt;P&gt;2. I want to hide the values along the xaxis (highlighted in yellow)&lt;/P&gt;
&lt;P&gt;The legend needs to be displayed at the bottom&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="YNWA1_0-1630624958526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63258i001135EC97699924/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YNWA1_0-1630624958526.png" alt="YNWA1_0-1630624958526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plot_graph;
infile datalines dlm=",";
input Exception $22. tot_pcnt;
datalines;
Tot_Number_Exception_A,2
Tot_Number_Exception_B,3
Tot_Number_Exception_C,10
Tot_Number_Exception_D,1
Tot_Number_Exception_E,1
;
run;

proc sgplot data=WORK.plot_graph;
   vbar Exception /response=tot_pcnt group=Exception  ;
   yaxis grid values=(0 to 12 by 2) display=(nolabel); 
   xaxis display=(nolabel) display=(noticks);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 00:06:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-09-03T00:06:24Z</dc:date>
    <item>
      <title>SGPLOT in ODS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPLOT-in-ODS/m-p/765771#M39483</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can't really get the right options to display my desired graph using SGPLOT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code producing the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I want the value to be displayed on top of each bar ( in red)&lt;/P&gt;&lt;P&gt;2. I want to hide the values along the xaxis (highlighted in yellow)&lt;/P&gt;&lt;P&gt;The legend needs to be displayed at the bottom&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="YNWA1_0-1630624958526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63258i001135EC97699924/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YNWA1_0-1630624958526.png" alt="YNWA1_0-1630624958526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plot_graph;
infile datalines dlm=",";
input Exception $22. tot_pcnt;
datalines;
Tot_Number_Exception_A,2
Tot_Number_Exception_B,3
Tot_Number_Exception_C,10
Tot_Number_Exception_D,1
Tot_Number_Exception_E,1
;
run;

proc sgplot data=WORK.plot_graph;
   vbar Exception /response=tot_pcnt group=Exception  ;
   yaxis grid values=(0 to 12 by 2) display=(nolabel); 
   xaxis display=(nolabel) display=(noticks);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 23:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPLOT-in-ODS/m-p/765771#M39483</guid>
      <dc:creator>YNWA1</dc:creator>
      <dc:date>2021-09-02T23:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT in ODS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPLOT-in-ODS/m-p/765776#M39484</link>
      <description>&lt;P&gt;Thanks for providing sample data, code and what you want!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For :&lt;/P&gt;
&lt;P&gt;1. Add &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;DATALABEL&lt;/STRONG&gt;&lt;/FONT&gt; option to the VBAR statement&lt;/P&gt;
&lt;P&gt;2. Change xaxis display option to &lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;NONE&lt;/FONT&gt; &lt;/STRONG&gt;to suppress the XAXIS labels and tick marks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=WORK.plot_graph;
   vbar Exception /response=tot_pcnt group=Exception &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;datalabel&lt;/FONT&gt;&lt;/STRONG&gt; ;
   yaxis grid values=(0 to 12 by 2) display=(nolabel); 
   xaxis &lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;display=none&lt;/STRONG&gt;&lt;/FONT&gt;;
run;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/394439"&gt;@YNWA1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I can't really get the right options to display my desired graph using SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code producing the below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I want the value to be displayed on top of each bar ( in red)&lt;/P&gt;
&lt;P&gt;2. I want to hide the values along the xaxis (highlighted in yellow)&lt;/P&gt;
&lt;P&gt;The legend needs to be displayed at the bottom&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="YNWA1_0-1630624958526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63258i001135EC97699924/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YNWA1_0-1630624958526.png" alt="YNWA1_0-1630624958526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plot_graph;
infile datalines dlm=",";
input Exception $22. tot_pcnt;
datalines;
Tot_Number_Exception_A,2
Tot_Number_Exception_B,3
Tot_Number_Exception_C,10
Tot_Number_Exception_D,1
Tot_Number_Exception_E,1
;
run;

proc sgplot data=WORK.plot_graph;
   vbar Exception /response=tot_pcnt group=Exception  ;
   yaxis grid values=(0 to 12 by 2) display=(nolabel); 
   xaxis display=(nolabel) display=(noticks);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 00:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SGPLOT-in-ODS/m-p/765776#M39484</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-03T00:06:24Z</dc:date>
    </item>
  </channel>
</rss>

