<?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 Add data label in a gplot in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-data-label-in-a-gplot/m-p/278282#M19233</link>
    <description>&lt;P&gt;I'm trying to add data labels to one of my plotted lines against the y axis (I have two y axis bars). All it does is put a little dot where it is supposed to be putting the value of char_var from the AMT_VAC_SUMMARY data set. Count_of_EMPL_IND is a numeric variable and I'm attempting to use the put line to rename it and change it to a character value. &amp;nbsp;Any help is appreciated. I've spend 8+ hours trying to teach myself how to do this function!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main data table: AMT_VAC_SUMMARY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%annomac;
data AMT_VAC_SUMMARY2;
length funciton style color $8 text $50;
set AMT_VAC_SUMMARY;
%annomac;
%system(2,2);
char_var=put(Count_of_EMPL_IND,3.);
if Count_of_AOD_EMPL_IND&amp;gt;=0 then do;
%label (Cal_Month,Count_of_AOD_EMPL_IND,char_var,orange,0,0,3,zapf,2);
end; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 18:54:50 GMT</pubDate>
    <dc:creator>CLE</dc:creator>
    <dc:date>2016-06-17T18:54:50Z</dc:date>
    <item>
      <title>Add data label in a gplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-data-label-in-a-gplot/m-p/278282#M19233</link>
      <description>&lt;P&gt;I'm trying to add data labels to one of my plotted lines against the y axis (I have two y axis bars). All it does is put a little dot where it is supposed to be putting the value of char_var from the AMT_VAC_SUMMARY data set. Count_of_EMPL_IND is a numeric variable and I'm attempting to use the put line to rename it and change it to a character value. &amp;nbsp;Any help is appreciated. I've spend 8+ hours trying to teach myself how to do this function!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main data table: AMT_VAC_SUMMARY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%annomac;
data AMT_VAC_SUMMARY2;
length funciton style color $8 text $50;
set AMT_VAC_SUMMARY;
%annomac;
%system(2,2);
char_var=put(Count_of_EMPL_IND,3.);
if Count_of_AOD_EMPL_IND&amp;gt;=0 then do;
%label (Cal_Month,Count_of_AOD_EMPL_IND,char_var,orange,0,0,3,zapf,2);
end; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-data-label-in-a-gplot/m-p/278282#M19233</guid>
      <dc:creator>CLE</dc:creator>
      <dc:date>2016-06-17T18:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add data label in a gplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-data-label-in-a-gplot/m-p/278643#M19234</link>
      <description>&lt;P&gt;CLE,&lt;/P&gt;&lt;P&gt;While this does&amp;nbsp;not answer your question about gplot, have you considered using sgplot instead? &amp;nbsp;if your goal is to label a series, sgplot does not require an annotation dataset to label points on a graph. &amp;nbsp;Here is a link to&amp;nbsp;the &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p073bl97jzadkmn15lhq58yiy2uh.htm" target="_self"&gt;sgplot's documentation&lt;/A&gt;&amp;nbsp;for more infomation about sgplot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here&amp;nbsp;is a quick example of how to graph two lines on both&amp;nbsp;y-axis and label one of them using sgplot.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.cars (where=(make="Audi"));
	vline  EngineSize / response = Horsepower 
		datalabel= Horsepower;
	vline EngineSize / response=MPG_Highway
		y2axis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-data-label-in-a-gplot/m-p/278643#M19234</guid>
      <dc:creator>Urban_Science</dc:creator>
      <dc:date>2016-06-20T11:48:52Z</dc:date>
    </item>
  </channel>
</rss>

