<?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: Data label in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208942#M7813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the VBAR statement, add GROUPDISPLAY=CLUSTER. The bar will not be stacked, but your labels should appear. Will that work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 18:50:04 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2015-08-27T18:50:04Z</dc:date>
    <item>
      <title>Data label in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208941#M7812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;I am using sas 9.4 on a 64-bit machine. I have a dataset like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;data totals;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;length dept $ 7 site $ 8 tx_sale $20 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;INFILE DATALINES DLM='#';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;input dept site quarter sales tx_sale ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;datalines ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Parts#Sydney#1#0# N/A#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Parts#Atlanta#1#50##&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Parts#Paris#1#60# #&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Tools#Shanghai#4#0#N/A#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Tools#Athen#4#35##&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;Tools#Pittsburg#4#48##&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;And I want to generate a bar chart with datalabel I specified in column tx_sale and the color of the bar indicating dept&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;I used code below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;proc sgplot data=totals;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;&amp;nbsp; hbar site / response=sales missing datalabel=tx_sale;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;The chart generated by the code didn't have the color &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;If I used code below :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;proc sgplot dat=totals;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;&amp;nbsp; hbar site / group=dept response=sales missing datalabel=tx_sale;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times; font-size: 12pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;The chart generated by the code didn't have the datalabels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;How can I have both color bar and data label on the same chart? Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208941#M7812</guid>
      <dc:creator>Forward</dc:creator>
      <dc:date>2015-08-27T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data label in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208942#M7813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the VBAR statement, add GROUPDISPLAY=CLUSTER. The bar will not be stacked, but your labels should appear. Will that work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 18:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208942#M7813</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-08-27T18:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data label in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208943#M7814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works. Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 19:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-label-in-SGPLOT/m-p/208943#M7814</guid>
      <dc:creator>Forward</dc:creator>
      <dc:date>2015-08-27T19:01:57Z</dc:date>
    </item>
  </channel>
</rss>

