<?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: Need help: Unable to adjust the Segment Label alignment in Bar Chart in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Unable-to-adjust-the-Segment-Label-alignment-in-Bar/m-p/552624#M74625</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class nway;
class age sex;
var height;
output out=class sum=;
run;
data class;
set class;
y=height-2;
run;


proc sgplot data=class;
vbarparm category=age response=height/group=sex groupdisplay=cluster ;
scatter x=age y=y/markerchar=height group=sex groupdisplay=cluster 
 markercharattrs=(color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 20 Apr 2019 11:47:05 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-04-20T11:47:05Z</dc:date>
    <item>
      <title>Need help: Unable to adjust the Segment Label alignment in Bar Chart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Unable-to-adjust-the-Segment-Label-alignment-in-Bar/m-p/552521#M74622</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to adjust the segment label position to the top in the attached bar chart. The program is copied below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Segment labels needs to be top aligned (Near to the highlighted portion in Yellow)" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28821i9C17C05860BFC76F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure- Label alignment adjustment needed.JPG" alt="Segment labels needs to be top aligned (Near to the highlighted portion in Yellow)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Segment labels needs to be top aligned (Near to the highlighted portion in Yellow)&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph vbarplot;&lt;BR /&gt;dynamic _ticklist_;&lt;BR /&gt;begingraph / collation=binary;&lt;BR /&gt;entrytitle '';&lt;BR /&gt;layout overlay / xaxisopts=(type=Discrete discreteOpts=(tickValueList=_ticklist_&lt;BR /&gt;tickValueListPolicy=Union tickvaluefitpolicy=rotate) label = "X axis Label")&lt;BR /&gt;yaxisopts=(labelFitPolicy=Split label = "Number of Subjects" linearopts=(integer=true) )&lt;BR /&gt;cycleattrs=true ;&lt;BR /&gt;barchart X=category Y=count / primary=true Group=trtn NAME="VBAR" groupdisplay=cluster&lt;BR /&gt;barwidth =1 clusterwidth = 0.65&lt;BR /&gt;SEGMENTLABEL = TRUE ;&lt;BR /&gt;discretelegend "VBAR"/ location=outside halign=center valign=bottom title=" ";&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgrender data=dummy template=vbarplot;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 18:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-Unable-to-adjust-the-Segment-Label-alignment-in-Bar/m-p/552521#M74622</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2019-04-19T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help: Unable to adjust the Segment Label alignment in Bar Chart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Unable-to-adjust-the-Segment-Label-alignment-in-Bar/m-p/552624#M74625</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class nway;
class age sex;
var height;
output out=class sum=;
run;
data class;
set class;
y=height-2;
run;


proc sgplot data=class;
vbarparm category=age response=height/group=sex groupdisplay=cluster ;
scatter x=age y=y/markerchar=height group=sex groupdisplay=cluster 
 markercharattrs=(color=black);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Apr 2019 11:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-Unable-to-adjust-the-Segment-Label-alignment-in-Bar/m-p/552624#M74625</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-20T11:47:05Z</dc:date>
    </item>
  </channel>
</rss>

