<?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: How to include Percent of frequency inside all graph bars? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976741#M25697</link>
    <description>Add SEGLABELFITPOLICY=NONE right after the SEGLABEL part.</description>
    <pubDate>Thu, 09 Oct 2025 23:58:50 GMT</pubDate>
    <dc:creator>quickbluefish</dc:creator>
    <dc:date>2025-10-09T23:58:50Z</dc:date>
    <item>
      <title>How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976738#M25696</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would greatly appreciate it if you could let me know how to include percent of frequency inside all levels of the Variable Peel Color in this graph. For some levels the % is included in the bars, but not for all levels.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1760045648586.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110525i8039911B94BA5B76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1760045648586.png" alt="palolix_0-1760045648586.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the code I am using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods powerpoint file='Storage PeelColor BL516 Harvest.pptx'image_dpi=300;&lt;BR /&gt;title "Storage PeelColor: BL516 vs Hass by Harvest month";&lt;BR /&gt;proc sgpanel data=one pctlevel=group;&lt;BR /&gt;where Harvest in(1,2,3,4,5,6,8) and Variety in('BL516','Hass');&lt;BR /&gt;panelby Harvest / columns=7 onepanel;&lt;BR /&gt;vbar Variety / group=PeelColor grouporder=ascending stat=percent&lt;BR /&gt;groupdisplay=stack seglabel; &lt;BR /&gt;run;&lt;BR /&gt;ods powerpoint close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 21:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976738#M25696</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-10-09T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976741#M25697</link>
      <description>Add SEGLABELFITPOLICY=NONE right after the SEGLABEL part.</description>
      <pubDate>Thu, 09 Oct 2025 23:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976741#M25697</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-10-09T23:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976750#M25698</link>
      <description>&lt;P&gt;You can try to switch VBAR into VBARPARM:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.heart out=have;
by smoking_status sex;
run;

proc freq data=have noprint;
by smoking_status sex;
table bp_status/out=have2 ;
run;
data have2;
set have2;
percent2=percent/100;
format percent2 percent8.2;
run;


proc sgpanel data=have2;
panelby smoking_status / rows=1 onepanel novarname;
vbarparm  category=sex response=percent2/ group=bp_status grouporder=ascending
groupdisplay=stack seglabel seglabelfitpolicy=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1760081166683.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110527iD940D2FD7EAEF392/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1760081166683.png" alt="Ksharp_0-1760081166683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 07:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976750#M25698</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-10-10T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976771#M25699</link>
      <description>&lt;P&gt;Thank you so much for your quick reply, it was very helpful.&lt;/P&gt;
&lt;P&gt;Is there a way remove them completely? If I don't include that statement I still get percentages in some bars but not others.&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-inline" image-alt="palolix_0-1760110790793.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110533iC888B95ABC07E62F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1760110790793.png" alt="palolix_0-1760110790793.png" /&gt;&lt;/span&gt;&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;Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 15:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976771#M25699</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-10-10T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976772#M25700</link>
      <description>&lt;P&gt;Thank you for your response Ksharp!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 15:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976772#M25700</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-10-10T15:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to include Percent of frequency inside all graph bars?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976778#M25704</link>
      <description>&lt;P&gt;Nevermind, I was only getting some percentages because I was not including the seglabel option.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 16:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-include-Percent-of-frequency-inside-all-graph-bars/m-p/976778#M25704</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-10-10T16:00:49Z</dc:date>
    </item>
  </channel>
</rss>

