<?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: Display  0 value of Category variable inside stacked BAR GRAPH in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572756#M18471</link>
    <description>&lt;P&gt;Thanks Tom, But i want to avoid the adding of the table below the graph. But it is nice to know there is an option to do that too.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 14:23:57 GMT</pubDate>
    <dc:creator>pchegoor</dc:creator>
    <dc:date>2019-07-11T14:23:57Z</dc:date>
    <item>
      <title>Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572716#M18467</link>
      <description>&lt;P&gt;Is&amp;nbsp; there a way to display even a&amp;nbsp; 0 value of&amp;nbsp; Category variable inside a stacked Bar graph?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp; eg&amp;nbsp; in the graph image&amp;nbsp; below the first Bar on the left does not display the 0%&amp;nbsp; value for category : &lt;STRONG&gt;AHoldPerc&lt;/STRONG&gt; . But i want to display it as 0% .&amp;nbsp; How is this possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp; &amp;nbsp;Any&amp;nbsp; suggestions?&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS code for the Image :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data  Sample;
Infile Datalines TRUNCOVER;
Input Category $10. Per percent7.2 Event_Date  ddmmyy10.;

format Event_Date date9. Per  percent7.2;
Datalines;
ATTPerc  	67.16%	25/09/2017
AHoldPerc	0%	    25/09/2017
ACWPerc  	32.84%	25/09/2017
ATTPerc  	68.25%	26/09/2017
AHoldPerc	12.18%	26/09/2017
ACWPerc  	19.57%	26/09/2017
ATTPerc  	68.11%	27/09/2017
AHoldPerc	12.57%	27/09/2017
ACWPerc  	19.32%	27/09/2017
ATTPerc  	67.87%	28/09/2017
AHoldPerc	11.28%	28/09/2017
ACWPerc  	20.84%	28/09/2017
ATTPerc  	69.01%	29/09/2017
AHoldPerc	12.09%	29/09/2017
ACWPerc  	18.90%	29/09/2017
ATTPerc  	67.98%	2/10/2017
AHoldPerc	11.91%	2/10/2017
ACWPerc  	20.12%	2/10/2017
;
Run;


proc sgplot data=sample;
	vbar EVENT_DATE / response=Per Group=Category  datalabel seglabel;
	YAXIS  max=1 grid Label="Percentage" Values=(0 to 1 by .05) ;

run;



&lt;/CODE&gt;&lt;/PRE&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;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 599px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30963iF3391367E72288D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572716#M18467</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2019-07-11T14:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572749#M18470</link>
      <description>&lt;P&gt;Perhaps you just want to add a data table to your graphic?&lt;/P&gt;
&lt;P&gt;Check out this question:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Create-barchart-with-data-table-for-each-group-value/td-p/313944" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Create-barchart-with-data-table-for-each-group-value/td-p/313944&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572749#M18470</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-11T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572756#M18471</link>
      <description>&lt;P&gt;Thanks Tom, But i want to avoid the adding of the table below the graph. But it is nice to know there is an option to do that too.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572756#M18471</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2019-07-11T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572768#M18473</link>
      <description>&lt;P&gt;Use&amp;nbsp;SEGLABELFITPOLICY=NONE. For thin bars (close to zero width), you might also want to use the NOOUTLINE option, which I think makes thin bars easier to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sample;
	vbar EVENT_DATE / response=Per Group=Category  datalabel seglabel nooutline SEGLABELFITPOLICY=NONE;
	YAXIS  max=1 grid Label="Percentage" Values=(0 to 1 by .05) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572768#M18473</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-11T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572772#M18474</link>
      <description>&lt;P&gt;Awesome&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; .&amp;nbsp; This is exactly what i wanted.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/572772#M18474</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2019-07-11T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Display  0 value of Category variable inside stacked BAR GRAPH</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/573496#M18490</link>
      <description>&lt;P&gt;Here's the output from Rick's solution, for those who would like to see what it looks like:&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="bar_rick.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31043i54AAECE6D05A4408/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar_rick.png" alt="bar_rick.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 13:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-0-value-of-Category-variable-inside-stacked-BAR-GRAPH/m-p/573496#M18490</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-07-15T13:35:46Z</dc:date>
    </item>
  </channel>
</rss>

