<?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 Annotating HBAR SubGroups in the bar and at the end in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-HBAR-SubGroups-in-the-bar-and-at-the-end/m-p/225633#M8178</link>
    <description>&lt;P&gt;I have &amp;nbsp;an HBAR GCHART that is currently annoted with count values centered inside the bar which is subgrouped by month. Kind of like this example.Each bar is a day of the week... each subdivision a month.&lt;/P&gt;
&lt;P&gt;==========================================================================================&lt;/P&gt;
&lt;P&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 400 &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;900 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;==========================================================================================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this I created a middle data set and calculated the center and values for each of the amounts. What I would like to do now is add the total to the end of the bar, outside the bar. &amp;nbsp; | &amp;nbsp;4800 &amp;nbsp; for example.&lt;/P&gt;
&lt;P&gt;But I can't figure out how to do this. My current program (without data) is attached.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2015 15:50:09 GMT</pubDate>
    <dc:creator>kcskaiser</dc:creator>
    <dc:date>2015-09-15T15:50:09Z</dc:date>
    <item>
      <title>Annotating HBAR SubGroups in the bar and at the end</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-HBAR-SubGroups-in-the-bar-and-at-the-end/m-p/225633#M8178</link>
      <description>&lt;P&gt;I have &amp;nbsp;an HBAR GCHART that is currently annoted with count values centered inside the bar which is subgrouped by month. Kind of like this example.Each bar is a day of the week... each subdivision a month.&lt;/P&gt;
&lt;P&gt;==========================================================================================&lt;/P&gt;
&lt;P&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 400 &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;900 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;==========================================================================================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this I created a middle data set and calculated the center and values for each of the amounts. What I would like to do now is add the total to the end of the bar, outside the bar. &amp;nbsp; | &amp;nbsp;4800 &amp;nbsp; for example.&lt;/P&gt;
&lt;P&gt;But I can't figure out how to do this. My current program (without data) is attached.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotating-HBAR-SubGroups-in-the-bar-and-at-the-end/m-p/225633#M8178</guid>
      <dc:creator>kcskaiser</dc:creator>
      <dc:date>2015-09-15T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Annotating HBAR SubGroups in the bar and at the end</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Annotating-HBAR-SubGroups-in-the-bar-and-at-the-end/m-p/226282#M8188</link>
      <description>&lt;P&gt;I've created a short example using sashelp.class to demonstrate one way to annotate values at the ends of the Hbars ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data anno_in_bar; set sashelp.class;&lt;BR /&gt;xsys='2'; ysys='2'; when='a';&lt;BR /&gt;midpoint=sex; subgroup=name;&lt;BR /&gt;function='label'; position='4'; text=trim(left(name));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table anno_end_bar as&lt;BR /&gt;select unique sex, sum(height) as total_height&lt;BR /&gt;from sashelp.class&lt;BR /&gt;group by sex;&lt;BR /&gt;quit; run;&lt;/P&gt;&lt;P&gt;data anno_end_bar; set anno_end_bar;&lt;BR /&gt;xsys='2'; ysys='2'; when='a';&lt;BR /&gt;midpoint=sex; x=total_height;&lt;BR /&gt;function='label'; position='6'; text='20'x||'Total='||trim(left(total_height));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data anno_all;&lt;BR /&gt;length text $50;&lt;BR /&gt;set anno_in_bar anno_end_bar;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pattern1 v=s color=yellow repeat=50;&lt;BR /&gt;proc gchart data=sashelp.class anno=anno_all;&lt;BR /&gt;hbar sex / type=sum sumvar=height nostats subgroup=name nolegend;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11963iAD4F3CD38C836E07/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="foo.png" title="foo.png" /&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Annotating-HBAR-SubGroups-in-the-bar-and-at-the-end/m-p/226282#M8188</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-09-18T14:11:35Z</dc:date>
    </item>
  </channel>
</rss>

