<?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: Can I Wrap a Title in the ODS KEYLEGEND Statement? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-Wrap-a-Title-in-the-ODS-KEYLEGEND-Statement/m-p/357299#M12406</link>
    <description>&lt;P&gt;The simple answer is No. &amp;nbsp;KEYLEGEND in the SGPLOT procedure does not provide this feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if this is important, and you are willing to take the next step, you can use GTL to do what you want.&lt;/P&gt;
&lt;P&gt;First, save the GTL template generated by SGPLOT to a sas file using the TMPLOUT option. &amp;nbsp;Then, update the GTL code and replace the DISCRETELEGEND statement with a LAYOUT GRIDDED, with two rows. &amp;nbsp;Now, place an ENTRY with the text you want as the title in the first row, and the legend in the 2nd row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout gridded / rows=2 columns=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; entry "title of the legend";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; discretelegend ....;&lt;/P&gt;
&lt;P&gt;endlayout;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 20:24:32 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-05-09T20:24:32Z</dc:date>
    <item>
      <title>Can I Wrap a Title in the ODS KEYLEGEND Statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-Wrap-a-Title-in-the-ODS-KEYLEGEND-Statement/m-p/357294#M12405</link>
      <description>&lt;P&gt;I have a long TITLE for a KEYLEGEND statement so it would be sensible to wrap it to multiple lines to make the wide legend narrower. Is there a way to do that? (I'm using ACROSS=1 because that's most reasonable with this graph.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the up-to-date version of the University Edition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don Macnaughton&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 20:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-Wrap-a-Title-in-the-ODS-KEYLEGEND-Statement/m-p/357294#M12405</guid>
      <dc:creator>DonMacnaughton</dc:creator>
      <dc:date>2017-05-09T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I Wrap a Title in the ODS KEYLEGEND Statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-I-Wrap-a-Title-in-the-ODS-KEYLEGEND-Statement/m-p/357299#M12406</link>
      <description>&lt;P&gt;The simple answer is No. &amp;nbsp;KEYLEGEND in the SGPLOT procedure does not provide this feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if this is important, and you are willing to take the next step, you can use GTL to do what you want.&lt;/P&gt;
&lt;P&gt;First, save the GTL template generated by SGPLOT to a sas file using the TMPLOUT option. &amp;nbsp;Then, update the GTL code and replace the DISCRETELEGEND statement with a LAYOUT GRIDDED, with two rows. &amp;nbsp;Now, place an ENTRY with the text you want as the title in the first row, and the legend in the 2nd row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;layout gridded / rows=2 columns=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; entry "title of the legend";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; discretelegend ....;&lt;/P&gt;
&lt;P&gt;endlayout;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 20:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-I-Wrap-a-Title-in-the-ODS-KEYLEGEND-Statement/m-p/357299#M12406</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-05-09T20:24:32Z</dc:date>
    </item>
  </channel>
</rss>

