<?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: Issue with hbar datalabel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610023#M19210</link>
    <description>&lt;P&gt;The DATALABELPOS option is basically a convenience option I added to do what I showed you with an AXISTABLE. With that convenience, I have to make some decisions internally. One of those involves labeling. If there is no GROUP, there is no point in showing a label, so no label appears. But, for a GROUP situation, I normally need to show a label so that you can identify each set of values per group value. For CLUSTER situations, however, that label is not as useful. Just know that XAXISTABLE/YAXISTABLE statements will give you the most control when creating "tabular" labeling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 16:26:39 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-12-06T16:26:39Z</dc:date>
    <item>
      <title>Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609991#M19205</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm adding a datalabel to an hbar plot the label variable name is appearing on the plot but only when I right align the label text. Does anyone know I can get rid of the variable name but keep the datalabel right aligned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=median_time_plot noborder;
hbar id / response=med group=nrp groupdisplay=cluster datalabel=lab datalabelpos=right datalabelattrs=(weight=BOLD size=10);
format med HHMM.;
title " ";
xaxis label=" ";
yaxis label=" ";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the graph below, the "lab" at the top of the chart is what I want to get rid of and only appears when datalabelpos=right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart_lab_redacted.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34508iE18CF65469115C07/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart_lab_redacted.png" alt="barchart_lab_redacted.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help and advice!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 15:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609991#M19205</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2019-12-06T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609993#M19206</link>
      <description>&lt;P&gt;Can you post your code please?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 15:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609993#M19206</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-06T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609995#M19207</link>
      <description>&lt;P&gt;I've added the code to the original post, thanks for the reply&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 15:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/609995#M19207</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2019-12-06T15:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610000#M19208</link>
      <description>&lt;P&gt;You get that labeling because of the GROUP variable. Here's another way you can show that information, but have have the control to remove that label in a grouping situation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=median_time_plot noborder;
hbar id / response=med group=nrp groupdisplay=cluster;
yaxistable lab / classdisplay=cluster nolabel valueattrs=(weight=BOLD size=10);
format med HHMM.;
title " ";
xaxis label=" ";
yaxis label=" ";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 15:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610000#M19208</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-12-06T15:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610008#M19209</link>
      <description>&lt;P&gt;Thanks Dan, works perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you've got time to elaborate, can you explain a bit how the GROUP variable caused the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610008#M19209</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2019-12-06T16:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with hbar datalabel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610023#M19210</link>
      <description>&lt;P&gt;The DATALABELPOS option is basically a convenience option I added to do what I showed you with an AXISTABLE. With that convenience, I have to make some decisions internally. One of those involves labeling. If there is no GROUP, there is no point in showing a label, so no label appears. But, for a GROUP situation, I normally need to show a label so that you can identify each set of values per group value. For CLUSTER situations, however, that label is not as useful. Just know that XAXISTABLE/YAXISTABLE statements will give you the most control when creating "tabular" labeling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 16:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-hbar-datalabel/m-p/610023#M19210</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-12-06T16:26:39Z</dc:date>
    </item>
  </channel>
</rss>

