<?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: datalabel in hbar statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279860#M9950</link>
    <description>&lt;P&gt;Sorry, I copied the other one. Just change "vbar" to "hbar". It doesn't work. Also, data is stored in a secure environment and I can't take it out. But the data layput is similar to this, but 50 chapters not 5:&lt;/P&gt;&lt;P&gt;chapter &amp;nbsp;case&amp;nbsp;&lt;SPAN&gt;WgtFreq &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 1 5&lt;/P&gt;&lt;P&gt;1 0 &amp;nbsp;10&lt;/P&gt;&lt;P&gt;2 1 2&lt;/P&gt;&lt;P&gt;2 0 6&lt;/P&gt;&lt;P&gt;3 1 5&lt;/P&gt;&lt;P&gt;3 0 9&lt;/P&gt;&lt;P&gt;4 1 10&lt;/P&gt;&lt;P&gt;4 0 15&lt;/P&gt;&lt;P&gt;5 1 20&lt;/P&gt;&lt;P&gt;5 0 15&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 21:45:01 GMT</pubDate>
    <dc:creator>Mehdi_R</dc:creator>
    <dc:date>2016-06-23T21:45:01Z</dc:date>
    <item>
      <title>datalabel in hbar statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279852#M9946</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sgplot to plots bar graphs. I would like to add the number associated with each bar to be&amp;nbsp;printed on each bar. When I use vbar statement, by the following options I can do so:&lt;/P&gt;&lt;P&gt;datalabel&amp;nbsp;datalabelfitpolicy=rotate/none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I use hbar&amp;nbsp;statement&amp;nbsp;the datalabel&amp;nbsp;option doesn't work with either of&amp;nbsp;&lt;SPAN&gt;datalabelfitpolicy=none&amp;nbsp;or&amp;nbsp;datalabelfitpolicy=rotate or without&amp;nbsp;datalabelfitpolicy.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will be thankful if anyone knows how I can activate&amp;nbsp;datalabel option when using hbar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279852#M9946</guid>
      <dc:creator>Mehdi_R</dc:creator>
      <dc:date>2016-06-23T20:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: datalabel in hbar statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279855#M9947</link>
      <description>&lt;P&gt;It should work the way you are describing&amp;nbsp;it. &amp;nbsp;Label rotation is not helpful for HBAR. &amp;nbsp;Please include full code and data to debug.&lt;/P&gt;
&lt;P&gt;What release of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279855#M9947</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-23T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: datalabel in hbar statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279857#M9948</link>
      <description>&lt;P&gt;I just realixed that when I have only two bars, it works, but in my actual example, I have about 100 bars (that's why I want to use hbar instead of vbar) and it doesn't show the labels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think the code is useful, but here you are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The chapter variable has about 50 categories, and case variable has two categories. So when I&amp;nbsp;run the code, I get about 100 bars:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options nodate nonumber;&lt;/P&gt;&lt;P&gt;ods pdf style=barcolors file = "R:\working\finished datasets\Chapters\admin\Specialty.pdf";&lt;/P&gt;&lt;P&gt;goptions device = pdf colors=(black) rotate=landscape;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / height = &lt;STRONG&gt;800&lt;/STRONG&gt; width = &lt;STRONG&gt;700&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;title font="helvetica/bold" height=&lt;STRONG&gt;10&lt;/STRONG&gt;pt "Overall weighted Frequency of Physician Specialty";&lt;/P&gt;&lt;P&gt;title2 font="helvetica/italic" height=&lt;STRONG&gt;8&lt;/STRONG&gt;pt "Stratified by Cases &amp;amp; Controls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data = Overall_Freq2_Specialty;&lt;/P&gt;&lt;P&gt;vbar Chapter/group = case response = WgtFreq groupdisplay=cluster&amp;nbsp; datalabel;&lt;/P&gt;&lt;P&gt;xaxis&amp;nbsp; label =&amp;nbsp; "Physician Specialty" ;&lt;/P&gt;&lt;P&gt;yaxis label = "Frequency"&amp;nbsp; grid;&lt;/P&gt;&lt;P&gt;keylegend / position=right location=outside;&lt;/P&gt;&lt;P&gt;where chapter ~= "General Practice";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;title;title2;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279857#M9948</guid>
      <dc:creator>Mehdi_R</dc:creator>
      <dc:date>2016-06-23T21:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: datalabel in hbar statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279859#M9949</link>
      <description>&lt;P&gt;Helps to have the code that is NOT&amp;nbsp;working (HBAR), WITH THE DATA.&amp;nbsp;&amp;nbsp;Also SAS version.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279859#M9949</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-23T21:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: datalabel in hbar statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279860#M9950</link>
      <description>&lt;P&gt;Sorry, I copied the other one. Just change "vbar" to "hbar". It doesn't work. Also, data is stored in a secure environment and I can't take it out. But the data layput is similar to this, but 50 chapters not 5:&lt;/P&gt;&lt;P&gt;chapter &amp;nbsp;case&amp;nbsp;&lt;SPAN&gt;WgtFreq &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 1 5&lt;/P&gt;&lt;P&gt;1 0 &amp;nbsp;10&lt;/P&gt;&lt;P&gt;2 1 2&lt;/P&gt;&lt;P&gt;2 0 6&lt;/P&gt;&lt;P&gt;3 1 5&lt;/P&gt;&lt;P&gt;3 0 9&lt;/P&gt;&lt;P&gt;4 1 10&lt;/P&gt;&lt;P&gt;4 0 15&lt;/P&gt;&lt;P&gt;5 1 20&lt;/P&gt;&lt;P&gt;5 0 15&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/datalabel-in-hbar-statement/m-p/279860#M9950</guid>
      <dc:creator>Mehdi_R</dc:creator>
      <dc:date>2016-06-23T21:45:01Z</dc:date>
    </item>
  </channel>
</rss>

