<?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 annotate help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126538#M260227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;In the below graph which is drawn using gbarline, is it possible to add a text on the graph region shown by arrow.&lt;/P&gt;&lt;P&gt;I am able to draw a reference line using ref option. But not able to add a text above it.&lt;/P&gt;&lt;P&gt;I created below annotate dataset and used it against PLOT statement(of gbarline ) but it says Annotate not supported by PLOT...&lt;/P&gt;&lt;P&gt;Then I used it against BAR statement but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;data an1;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length function color text $ 30 style $ 20;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hsys='3'; when='a';&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'move'; xsys='1'; x=0; ysys='2'; y=3000000; output;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'draw'; xsys='1'; x=100; ysys='2';&amp;nbsp; y=3000000; line=33; size=2;color="gray"; output; &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'label'; xsys='1'; x=75; ysys='2';&amp;nbsp; y=3000000; style="Arial"; size=2; text='Limit'; position="2"; output; &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc gbarline data=sashelp.electric;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bar year / discrete sumvar=Revenue subgroup=Customer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html=revtip name="US_Electric_Power"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; des="Chart of US Electricity Generation Sources and Consumers";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; plot / sumvar=AllPower&amp;nbsp;&amp;nbsp; html=alltip&amp;nbsp; ref=3000000;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me please.!!.(here the reference line and hence the text depend only on the plot response axis and not the bar response axis. so dont want to interchange..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gbr_pl_anno.bmp" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2710_gbr_pl_anno.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 20:37:15 GMT</pubDate>
    <dc:creator>kds</dc:creator>
    <dc:date>2012-11-14T20:37:15Z</dc:date>
    <item>
      <title>annotate help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126538#M260227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;In the below graph which is drawn using gbarline, is it possible to add a text on the graph region shown by arrow.&lt;/P&gt;&lt;P&gt;I am able to draw a reference line using ref option. But not able to add a text above it.&lt;/P&gt;&lt;P&gt;I created below annotate dataset and used it against PLOT statement(of gbarline ) but it says Annotate not supported by PLOT...&lt;/P&gt;&lt;P&gt;Then I used it against BAR statement but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;data an1;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length function color text $ 30 style $ 20;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hsys='3'; when='a';&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'move'; xsys='1'; x=0; ysys='2'; y=3000000; output;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'draw'; xsys='1'; x=100; ysys='2';&amp;nbsp; y=3000000; line=33; size=2;color="gray"; output; &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'label'; xsys='1'; x=75; ysys='2';&amp;nbsp; y=3000000; style="Arial"; size=2; text='Limit'; position="2"; output; &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc gbarline data=sashelp.electric;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bar year / discrete sumvar=Revenue subgroup=Customer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html=revtip name="US_Electric_Power"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; des="Chart of US Electricity Generation Sources and Consumers";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; plot / sumvar=AllPower&amp;nbsp;&amp;nbsp; html=alltip&amp;nbsp; ref=3000000;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me please.!!.(here the reference line and hence the text depend only on the plot response axis and not the bar response axis. so dont want to interchange..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gbr_pl_anno.bmp" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2710_gbr_pl_anno.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 20:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126538#M260227</guid>
      <dc:creator>kds</dc:creator>
      <dc:date>2012-11-14T20:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: annotate help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126539#M260228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully Robert or anyone more versed in graphics than me will respond.&amp;nbsp; However, I think your coordinates are off and annotate can be included.&amp;nbsp; The following does do exactly what you asked for, but shows that you are on the right track:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data an1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length function color text $ 30 style $ 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hsys='3'; when='a';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'move'; xsys='1'; x=70; ysys='2'; y=280; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'draw'; xsys='1'; x=90; ysys='2'; y=180; line=1; size=1;color="gray"; output; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'label'; xsys='1'; x=90; ysys='2';y=180; style="Arial"; size=2; text='Limit'; position="2"; output; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc gbarline data=sashelp.electric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; annotate=an1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bar year / discrete sumvar=Revenue subgroup=Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html=revtip name="US_Electric_Power"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; des="Chart of US Electricity Generation Sources and Consumers";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; plot / sumvar=AllPower&amp;nbsp;&amp;nbsp; html=alltip&amp;nbsp; ref=3000000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126539#M260228</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-14T21:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: annotate help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126540#M260229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks Arthur for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the reference line needs to be drawn from 3000000.&lt;/P&gt;&lt;P&gt;In the diagram shown,&amp;nbsp; 3000000(of plot response axis) corresponds to 180(of bar response axis) , but in actuality 3000000 can correspond to any value....&amp;nbsp;&amp;nbsp; since ref line text needs to be along 3000000( so 3000000 is fixed)..hence I tried hardcoding y=3000000&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does&amp;nbsp;&amp;nbsp; y variable (in annotate) always refers to LEFT Y-axis.... , how can we make it refer to the RIGHT Y-Axis(in this case the PLOT Response Axis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i even tried y1=3000000&amp;nbsp;&amp;nbsp;&amp;nbsp; , y2=3000000&amp;nbsp;&amp;nbsp;&amp;nbsp; it doesn't work.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126540#M260229</guid>
      <dc:creator>kds</dc:creator>
      <dc:date>2012-11-14T21:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: annotate help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126541#M260230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will &lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-weight: bold; background-color: #ffffff;"&gt;YAXIS= “Y2” &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;work?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 22:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126541#M260230</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-14T22:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: annotate help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126542#M260231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to look into Graph Template Language as there are some additional features such as this available. The GTL REFERENCELINE statement allows labeling a reference line, controlling the font and color of text and some minimal control over where in relation to the line the label will appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 22:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/annotate-help/m-p/126542#M260231</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-11-14T22:57:09Z</dc:date>
    </item>
  </channel>
</rss>

