<?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: Xaxis Table and Legend Clipped in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988422#M25926</link>
    <description>&lt;P&gt;It is hard to give you some advice, if you didn't post some data to test your code .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try option legendareamax=&amp;nbsp; as DanH_SAS suggested,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or try options:&lt;/P&gt;
&lt;PRE&gt;ods graphics/width=1000px height=2000px ;&lt;/PRE&gt;
&lt;P&gt;to make your graph bigger to hold this legend.&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2026 07:14:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2026-05-21T07:14:41Z</dc:date>
    <item>
      <title>Xaxis Table and Legend Clipped</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988329#M25919</link>
      <description>&lt;P&gt;I have this code within a macro and I needed to add an XAXISTABLE statement. Now the legend is clipped. What are my options?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=PLOTDATA dattrmap=&amp;amp;attr; &lt;BR /&gt;series x=Month2 y=aval / group=CAT break transparency=0.2 lineattrs=(pattern=solid thickness = 2.0pt) markers markerattrs = (size= 6pt ) attrid = linecolors ;&lt;BR /&gt;xaxis offsetmin = 0.015 min = -1 fitpolicy = none values = (0 1 3 6 12 18 24 36 48 60 72 84 96) label = 'Month' labelattrs = (size = 7pt family = "Courier New") &lt;BR /&gt;valueattrs = (size = 7pt family = "Courier New");&lt;BR /&gt;yaxis values = (&amp;amp;low to &amp;amp;high by &amp;amp;by) label = "&amp;amp;&amp;amp;param&amp;amp;i" grid labelattrs = (size = 7pt family = "Courier New") valueattrs = (size = 7pt family = "Courier New");&lt;BR /&gt;xaxistable n / class = cat valueattrs = (size = 7pt) labelattrs = (size = 7pt);&lt;BR /&gt;keylegend / type=marker title="" valueattrs = (size = 7pt family = "Courier New") noborder ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 19:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988329#M25919</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2026-05-19T19:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Xaxis Table and Legend Clipped</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988412#M25920</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Sure you want to work with Courier New? It's a monospace font (&lt;SPAN&gt;exact same horizontal width for every character - like "i" and "w")&lt;/SPAN&gt;. Working with a proportional font might save some space.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Increase the size of the graph using the HEIGHT= and/or WIDTH= option in the ODS GRAPHICS statement.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Use the MAXLEGENDAREA= option in the ODS GRAPHICS statement to increase the space available for the legend.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Does it help?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 19:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988412#M25920</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-20T19:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Xaxis Table and Legend Clipped</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988413#M25923</link>
      <description>&lt;P&gt;When you say "clipped", do you mean the legend is dropped, or the legend area &amp;nbsp;is overwritten? If it is dropped, try increasing the LEGENDAREAMAX on the ODS GRAPHICS statement:&lt;/P&gt;
&lt;P&gt;ods graphics / legendareamax=35; /* This means 35 percent */&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 19:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988413#M25923</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-05-20T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Xaxis Table and Legend Clipped</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988422#M25926</link>
      <description>&lt;P&gt;It is hard to give you some advice, if you didn't post some data to test your code .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try option legendareamax=&amp;nbsp; as DanH_SAS suggested,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or try options:&lt;/P&gt;
&lt;PRE&gt;ods graphics/width=1000px height=2000px ;&lt;/PRE&gt;
&lt;P&gt;to make your graph bigger to hold this legend.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 07:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Xaxis-Table-and-Legend-Clipped/m-p/988422#M25926</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-21T07:14:41Z</dc:date>
    </item>
  </channel>
</rss>

