<?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: PROC SGPLOT - LEGEND AND CURVELABEL TOGETHER in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205198#M7656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballardw. It solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 22:16:01 GMT</pubDate>
    <dc:creator>P_S_</dc:creator>
    <dc:date>2015-03-18T22:16:01Z</dc:date>
    <item>
      <title>PROC SGPLOT - LEGEND AND CURVELABEL TOGETHER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205195#M7653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have sas 9.3. I am using SGPLOT and I have set of series plot and the legend for the lines and it works fine.&lt;/P&gt;&lt;P&gt;However I also need to add the label to each lines using curvelabel option so that the eye movement is reduced.&lt;/P&gt;&lt;P&gt;The problem is when I use curvelabel option the legend disappears.&lt;/P&gt;&lt;P&gt;Is there a way that I could have both in my plot?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code and the output as an example.&lt;/P&gt;&lt;P&gt;/*THIS GIVES ME THE LEGEND*/&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.stocks(where=(date &amp;gt;= "01jan2000"d and stock = "IBM")) ;;&lt;/P&gt;&lt;P&gt;title "Stock Trend : IBM";&lt;/P&gt;&lt;P&gt;series x=date y=close /legendlabel="CCCC";&lt;/P&gt;&lt;P&gt;series x=date y=low&amp;nbsp;&amp;nbsp; /legendlabel="LLLL";&lt;/P&gt;&lt;P&gt;series x=date y=high&amp;nbsp; /legendlabel="HHHH";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9618" alt="legend.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9618_legend.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I add the curvelabel option. It works but the LEGEND DISAPPEARS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.stocks(where=(date &amp;gt;= "01jan2000"d and stock = "IBM")) ;;&lt;/P&gt;&lt;P&gt;title "Stock Trend : IBM";&lt;/P&gt;&lt;P&gt;series x=date y=close /curvelabel='Close' curvelabelloc=inside curvelabelpos=max&amp;nbsp; legendlabel="CCCC";&lt;/P&gt;&lt;P&gt;series x=date y=low&amp;nbsp;&amp;nbsp; /curvelabel='Low'&amp;nbsp;&amp;nbsp; curvelabelloc=inside&amp;nbsp; curvelabelpos=max legendlabel="LLLL";&lt;/P&gt;&lt;P&gt;series x=date y=high&amp;nbsp; /curvelabel='High'&amp;nbsp; curvelabelloc=inside&amp;nbsp; curvelabelpos=max legendlabel="HHHH";&lt;/P&gt;&lt;P&gt;legend ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9619" alt="curvelabel.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9619_curvelabel.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205195#M7653</guid>
      <dc:creator>P_S_</dc:creator>
      <dc:date>2015-03-18T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT - LEGEND AND CURVELABEL TOGETHER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205196#M7654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.stocks(where=(date &amp;gt;= "01jan2000"d and stock = "IBM")) ;;&lt;/P&gt;&lt;P&gt;title "Stock Trend : IBM";&lt;/P&gt;&lt;P&gt;series x=date y=close /curvelabel='Close' curvelabelloc=inside curvelabelpos=max&amp;nbsp; legendlabel="CCCC" name='a';&lt;/P&gt;&lt;P&gt;series x=date y=low&amp;nbsp;&amp;nbsp; /curvelabel='Low'&amp;nbsp;&amp;nbsp; curvelabelloc=inside&amp;nbsp; curvelabelpos=max legendlabel="LLLL" name='b';&lt;/P&gt;&lt;P&gt;series x=date y=high&amp;nbsp; /curvelabel='High'&amp;nbsp; curvelabelloc=inside&amp;nbsp; curvelabelpos=max legendlabel="HHHH" name='c';&lt;/P&gt;&lt;P&gt;keylegend 'a' 'b' 'c';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 21:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205196#M7654</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-18T21:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT - LEGEND AND CURVELABEL TOGETHER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205197#M7655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ballardw is correct. By default, a curvelabel removes a plot from the auto legend because it is considered redundant information. Since the curve label was turned on for all three plot, the auto legend disappeared. However, you can override that behavior by creating your own legend, as in Ballardw's example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 21:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205197#M7655</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-03-18T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT - LEGEND AND CURVELABEL TOGETHER</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205198#M7656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballardw. It solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 22:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-LEGEND-AND-CURVELABEL-TOGETHER/m-p/205198#M7656</guid>
      <dc:creator>P_S_</dc:creator>
      <dc:date>2015-03-18T22:16:01Z</dc:date>
    </item>
  </channel>
</rss>

