<?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 PROC GBARLINE - specify legend in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389563#M93407</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below code that shows using uniform axis, the trended comparison between 2016 vs 2017. However, I'm trying to specify the legend into the chart but nothing works...any help would be appreciated. I would like two keys; one for '2017' and oanother for '2016'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;GOPTIONS RESET=ALL CBACK=WHITE BORDER HTITLE=12PT HTEXT=10PT;
SYMBOL INTERPOL=JOIN COLOR=BLACK VALUE=DOT;
LEGEND1 LABEL=(POSITION=(BOTTOM RIGHT) ) VALUE=('YR16' 'MTH_RENEW') ACROSS=1;
 TITLE 'RENEWALS 2016 VS 2017';
PROC GBARLINE DATA=CVMGEN.EME_RNWLS_2017 UNIFORMAXES;
   VBAR MTH_RENEW / SUMVAR=YR17 MAXIS=AXIS1  ;
   PLOT / SUMVAR=YR16;
RUN;
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 15:48:36 GMT</pubDate>
    <dc:creator>CamRutherford</dc:creator>
    <dc:date>2017-08-21T15:48:36Z</dc:date>
    <item>
      <title>PROC GBARLINE - specify legend</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389563#M93407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below code that shows using uniform axis, the trended comparison between 2016 vs 2017. However, I'm trying to specify the legend into the chart but nothing works...any help would be appreciated. I would like two keys; one for '2017' and oanother for '2016'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;GOPTIONS RESET=ALL CBACK=WHITE BORDER HTITLE=12PT HTEXT=10PT;
SYMBOL INTERPOL=JOIN COLOR=BLACK VALUE=DOT;
LEGEND1 LABEL=(POSITION=(BOTTOM RIGHT) ) VALUE=('YR16' 'MTH_RENEW') ACROSS=1;
 TITLE 'RENEWALS 2016 VS 2017';
PROC GBARLINE DATA=CVMGEN.EME_RNWLS_2017 UNIFORMAXES;
   VBAR MTH_RENEW / SUMVAR=YR17 MAXIS=AXIS1  ;
   PLOT / SUMVAR=YR16;
RUN;
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389563#M93407</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-08-21T15:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GBARLINE - specify legend</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389567#M93409</link>
      <description>&lt;P&gt;You need to tell the procedure to use the legend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add&lt;/P&gt;
&lt;P&gt;Legend=Legend1&lt;/P&gt;
&lt;P&gt;to the plot options for the BAR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also in GBARLINE the syntax for the bar is BAR not Vbar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or move to Proc Sgplot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389567#M93409</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-21T15:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GBARLINE - specify legend</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389569#M93410</link>
      <description>&lt;P&gt;Tried it. Doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It only givens me YR16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LEGEND1 LABEL=(POSITION=(BOTTOM RIGHT) ) VALUE=('YR16' 'YR17') ACROSS=1;

 TITLE 'GERMANY RENEWALS 2016 VS 2017';
PROC GBARLINE DATA=CVMGEN.EME_RNWLS_2017 UNIFORMAXES;
WHERE SBR_OFF_DESC = 'GERMANY';
   BAR MTH_RENEW / SUMVAR=YR17 MAXIS=AXIS1 RAXIS=AXIS2 LEGEND=LEGEND1 AUTOREF CLIPREF ;
   PLOT / SUMVAR=YR16 RAXIS=AXIS3 AUTOREF CLIPREF ;
RUN;
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389569#M93410</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-08-21T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GBARLINE - specify legend</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389617#M93422</link>
      <description>&lt;P&gt;Can you move to SGPLOT? The quality of graphics are much better and the coding is simpler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389617#M93422</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-21T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GBARLINE - specify legend</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389628#M93427</link>
      <description>&lt;P&gt;Without data we can't test code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GBARLINE-specify-legend/m-p/389628#M93427</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-21T19:13:55Z</dc:date>
    </item>
  </channel>
</rss>

