<?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 seglabel on outside of horizontal bar when using Journal2- using SAS 9.4 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Need-seglabel-on-outside-of-horizontal-bar-when-using-Journal2/m-p/518607#M17525</link>
    <description>&lt;P&gt;The basic approach I would take would be to&lt;/P&gt;
&lt;P&gt;1) summarize the data creating the percentage values you need&lt;/P&gt;
&lt;P&gt;2) add the TEXT of the values as a new variable with compatible horizontal and vertical axis values&lt;/P&gt;
&lt;P&gt;3) add a TEXT plot&lt;/P&gt;
&lt;P&gt;4) modify the hbar to remove segment labels entirely and make sure there is sufficient space between the bars for the text and to have a TEXT plot an HBARPARM would be needed for compatibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your current variable for Sex is character you may need to change to a numeric with appropriate format so the X Y coordinates can make sense.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2018 00:08:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-12-05T00:08:19Z</dc:date>
    <item>
      <title>Need seglabel on outside of horizontal bar when using Journal2- using SAS 9.4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-seglabel-on-outside-of-horizontal-bar-when-using-Journal2/m-p/518600#M17524</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style = journal2;
proc sgplot data =WORK.PLAY pctlevel=group;
hbar Q68 / GROUP=Q3 groupdisplay=stack grouporder=descending 
stat=percent barwidth=0.80 seglabel seglabelattrs=(family="Arial" size=12pt weight=bold) seglabelfitpolicy=noclip datalabel=; keylegend/ noborder title="" location=outside position=right across=1 valueattrs=(size=13pt) sortorder=descending;
yaxis valueattrs=(Family="Arial" size= 13pt) label = "Sex" Labelattrs=(family="Arial" size= 13pt);
xaxis valueattrs=(Family="Arial" size= 13pt) label = "Percentage" Labelattrs=(Family= "Arial" size= 13pt);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hello there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I am stuck and need to have a readable graph.&amp;nbsp; I am creating a bivariate horizontal bargraph &lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;(of Q3No. of ER visits vs. Q68sex)&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; using PROC SGPLOT with Journal2 style. Is there any way I can move the segment labels from inside the bars to outside just so that they are legible? Apologies, I am unable to show the data. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;The output for the code below is shown in attachment "&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;figure ER visits vs sex&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I am looking to produce the graph with labels as seen in the attachment "&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;What I want my graph to look like ER vs sex&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I appreciate the help. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 22:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-seglabel-on-outside-of-horizontal-bar-when-using-Journal2/m-p/518600#M17524</guid>
      <dc:creator>AnneHsr</dc:creator>
      <dc:date>2018-12-04T22:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need seglabel on outside of horizontal bar when using Journal2- using SAS 9.4</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-seglabel-on-outside-of-horizontal-bar-when-using-Journal2/m-p/518607#M17525</link>
      <description>&lt;P&gt;The basic approach I would take would be to&lt;/P&gt;
&lt;P&gt;1) summarize the data creating the percentage values you need&lt;/P&gt;
&lt;P&gt;2) add the TEXT of the values as a new variable with compatible horizontal and vertical axis values&lt;/P&gt;
&lt;P&gt;3) add a TEXT plot&lt;/P&gt;
&lt;P&gt;4) modify the hbar to remove segment labels entirely and make sure there is sufficient space between the bars for the text and to have a TEXT plot an HBARPARM would be needed for compatibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your current variable for Sex is character you may need to change to a numeric with appropriate format so the X Y coordinates can make sense.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 00:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-seglabel-on-outside-of-horizontal-bar-when-using-Journal2/m-p/518607#M17525</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-05T00:08:19Z</dc:date>
    </item>
  </channel>
</rss>

