<?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 vbarparm datalabels in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361252#M12596</link>
    <description>&lt;P&gt;So I have the code below-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially I am attempting to use a datalabel for&amp;nbsp;vbarparm that essentially uses a character value that combines a percentage/n&lt;/P&gt;
&lt;P&gt;value such as (85%/n=5) -however the values do not render unlike in the&amp;nbsp;scatter that does work. &amp;nbsp;Graph is attached that demonstrates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is below- Any suggestions appreciated-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lawrence&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=max_mobility;&lt;BR /&gt;vbarparm category=specific_day response=TOTS/ group=keylegnd grouporder=ascending dataskin=pressed SEGLABEL&lt;BR /&gt; groupdisplay=stack &lt;STRONG&gt;&lt;FONT color="#339966"&gt;DATALABEL=dt_label&lt;/FONT&gt;&lt;/STRONG&gt; SPLITCHAR="/" datalabelpos=data seglabelfitpolicy=none&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;scatter x=specific_day y=pct_mob_dis /&lt;BR /&gt;markerattrs=graphdata1(size=40 symbol=circlefilled )&lt;BR /&gt; filledoutlinedmarkers markeroutlineattrs=(thickness=0)&lt;BR /&gt; markerfillattrs=graphdata4 dataskin=pressed &lt;STRONG&gt;&lt;FONT color="#339966"&gt;datalabel=dtot_label&lt;/FONT&gt;&lt;/STRONG&gt; SPLITCHAR="\" datalabelpos=center legendlabel='Percent Mobilized';&lt;BR /&gt; keylegend / location=outside position=right title='Mobility Scale' ;&lt;BR /&gt; YAXIS LABEL = "Distribution of maximum activity levels (%)" TICKVALUEFORMAT=percent10. ;&lt;BR /&gt; XAXIS LABEL = "DATE" ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13875i19310E59D01D7684/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="PIX.jpg" title="PIX.jpg" /&gt;</description>
    <pubDate>Wed, 24 May 2017 15:37:47 GMT</pubDate>
    <dc:creator>LB</dc:creator>
    <dc:date>2017-05-24T15:37:47Z</dc:date>
    <item>
      <title>vbarparm datalabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361252#M12596</link>
      <description>&lt;P&gt;So I have the code below-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially I am attempting to use a datalabel for&amp;nbsp;vbarparm that essentially uses a character value that combines a percentage/n&lt;/P&gt;
&lt;P&gt;value such as (85%/n=5) -however the values do not render unlike in the&amp;nbsp;scatter that does work. &amp;nbsp;Graph is attached that demonstrates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is below- Any suggestions appreciated-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lawrence&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=max_mobility;&lt;BR /&gt;vbarparm category=specific_day response=TOTS/ group=keylegnd grouporder=ascending dataskin=pressed SEGLABEL&lt;BR /&gt; groupdisplay=stack &lt;STRONG&gt;&lt;FONT color="#339966"&gt;DATALABEL=dt_label&lt;/FONT&gt;&lt;/STRONG&gt; SPLITCHAR="/" datalabelpos=data seglabelfitpolicy=none&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;scatter x=specific_day y=pct_mob_dis /&lt;BR /&gt;markerattrs=graphdata1(size=40 symbol=circlefilled )&lt;BR /&gt; filledoutlinedmarkers markeroutlineattrs=(thickness=0)&lt;BR /&gt; markerfillattrs=graphdata4 dataskin=pressed &lt;STRONG&gt;&lt;FONT color="#339966"&gt;datalabel=dtot_label&lt;/FONT&gt;&lt;/STRONG&gt; SPLITCHAR="\" datalabelpos=center legendlabel='Percent Mobilized';&lt;BR /&gt; keylegend / location=outside position=right title='Mobility Scale' ;&lt;BR /&gt; YAXIS LABEL = "Distribution of maximum activity levels (%)" TICKVALUEFORMAT=percent10. ;&lt;BR /&gt; XAXIS LABEL = "DATE" ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13875i19310E59D01D7684/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="PIX.jpg" title="PIX.jpg" /&gt;</description>
      <pubDate>Wed, 24 May 2017 15:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361252#M12596</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2017-05-24T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: vbarparm datalabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361285#M12599</link>
      <description>&lt;P&gt;If the VBARPARM has groups (default stacked), then data label option does not work. &amp;nbsp;This was due to the need to show only one label at the top of the bar. &amp;nbsp;GROPY=CLUSTER would work. &amp;nbsp;However, this issue will be fixed for SAS 9.40M5. &amp;nbsp;We will still show only one label at the top, but it will be the one of the labels from the segment, most likely the first. &amp;nbsp;So, you must have the same value for all the segments of the bar to get reliable results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While you can still display a label using TEXT plot, you have to compute the y coordinate of the stack. &amp;nbsp;The fix at V9.4M5 will avoid that need. &amp;nbsp;In your graph using SCATTER to display the value, you can set YAXIS offsetmin=0 to make the bars sit on the x-axis.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 17:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361285#M12599</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-05-24T17:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: vbarparm datalabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361779#M12610</link>
      <description>&lt;P&gt;Thanks Sanjay-&lt;/P&gt;
&lt;P&gt;So if it is not feasible to do so now then the client is willing to accept a table below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know you can use the&amp;nbsp;&lt;SPAN&gt;datalabelpos to create a table below except it does not render in the same order as the group order-&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How I can match it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vbarparm category=specific_day response=TOTS/ group=keylegnd grouporder=ascending dataskin=pressed SEGLABEL&lt;BR /&gt; groupdisplay=stack DATALABEL=dt_label SPLITCHAR="/" &lt;STRONG&gt;&lt;FONT color="#008000"&gt;datalabelpos=data&lt;/FONT&gt;&lt;/STRONG&gt; seglabelfitpolicy=none /*SEGLABELFORMAT=percent10.*/;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lawrence &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 21:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/vbarparm-datalabels/m-p/361779#M12610</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2017-05-25T21:21:08Z</dc:date>
    </item>
  </channel>
</rss>

