<?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: Issue with legend labels truncating in PROC SGPLOT and SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983991#M25822</link>
    <description>&lt;P&gt;No!! This fixes it! This has been driving me mad for ages so many thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 17:34:02 GMT</pubDate>
    <dc:creator>SamR</dc:creator>
    <dc:date>2026-02-24T17:34:02Z</dc:date>
    <item>
      <title>Issue with legend labels truncating in SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983969#M25814</link>
      <description>&lt;P&gt;I am having a recurring issue where labels are frequently truncating in legends in both SGPANEL and SGPLOT. There is plenty of room for the labels so I have no idea why this is happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;
ods escapechar='~';
ods graphics on /width = 9in height =4in noborder; 

ods rtf file="&amp;amp;output.\&amp;amp;Tfloutput..rtf" style=rtfdef startpage=yes nogfootnote nogtitle;

proc sgpanel data=final;
  by paramn param;
  panelby mct / columns=1 rows=4;
  hbar trt01pn / response=rowpercent group=respn name="plot" ;
  colaxis label='Percent of Total Frequency';
  rowaxis label=' ' type=discrete reverse;
  keylegend "plot"/ title="Status";
  format trt01pn trt. respn resp.;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Screen shot of truncated legend label below. Even if I use across to do one label per line in the legend it still truncates. Any suggestions of a fix?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-02-24 145932.png" style="width: 243px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113339i6394F23C7CBA90F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-02-24 145932.png" alt="Screenshot 2026-02-24 145932.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 15:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983969#M25814</guid>
      <dc:creator>SamR</dc:creator>
      <dc:date>2026-02-24T15:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983976#M25815</link>
      <description>&lt;P&gt;I had this same problem, it happened when the version of SAS Studio in SAS Viya changed. The default fonts changed, the default style changed and I saw the exact same truncation of labels that you are seeing. The solution is quoted below, verbatim, that my local support people received from SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;This is a known issue with newer versions of SAS Studio due to a change that R&amp;amp;D made. By default, newer versions of SAS Studio use the following new ODS style:&lt;BR /&gt;Light2025&lt;BR /&gt;I can easily recreate this issue here. The issue is due to the default style that SAS uses when using newer versions of SAS Viya. &lt;BR /&gt;To see if this circumvents the issue, please do the following. &lt;BR /&gt;When in a SAS Studio/SAS Viya session, click the "login" icon in the upper-right hand corner of the SAS Studio window. This is the icon just to the right of the question mark ("?") icon. &lt;BR /&gt;Then, choose:&lt;BR /&gt;Settings&lt;BR /&gt;Under:&lt;BR /&gt;SAS Programs&lt;BR /&gt;Select:&lt;BR /&gt;Results&lt;BR /&gt;On the right-hand side, enable the following option:&lt;BR /&gt;Specify an HTML output style&lt;BR /&gt;And for the style, choose a style such as:&lt;BR /&gt;HTMLBlue&lt;BR /&gt;Or:&lt;BR /&gt;HTMLEncore&lt;BR /&gt;Then click:&lt;BR /&gt;Close&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 24 Feb 2026 16:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983976#M25815</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-02-24T16:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983977#M25816</link>
      <description>&lt;P&gt;Can you show more of the graph area containing the legend to give a little more context?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 16:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983977#M25816</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-02-24T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983979#M25817</link>
      <description>&lt;P&gt;Sure. Here you go.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph.png" style="width: 980px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/113341i0BEBEFAC519C1409/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph.png" alt="graph.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 16:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983979#M25817</guid>
      <dc:creator>SamR</dc:creator>
      <dc:date>2026-02-24T16:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983981#M25818</link>
      <description>&lt;P&gt;Are you using SAS Viya 4? If so, what version?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 16:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983981#M25818</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-02-24T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983982#M25819</link>
      <description>&lt;P&gt;No not SAS Viya. Just standard DMS 9.4&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 16:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983982#M25819</guid>
      <dc:creator>SamR</dc:creator>
      <dc:date>2026-02-24T16:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983989#M25820</link>
      <description>&lt;P&gt;For the record, the font issue described by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;has been addressed. The newer styles such as Light2025 should no longer have the truncation issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983989#M25820</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-02-24T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983990#M25821</link>
      <description>&lt;P&gt;Do you get the same behavior if you add OUTPUTFMT=PNG to the ODS GRAPHICS statement in your program?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983990#M25821</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-02-24T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in PROC SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983991#M25822</link>
      <description>&lt;P&gt;No!! This fixes it! This has been driving me mad for ages so many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:34:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983991#M25822</guid>
      <dc:creator>SamR</dc:creator>
      <dc:date>2026-02-24T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with legend labels truncating in SGPLOT and SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983992#M25823</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For the record, the font issue described by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;has been addressed. The newer styles such as Light2025 should no longer have the truncation issue.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Good to know. Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-legend-labels-truncating-in-SGPLOT-and-SGPANEL/m-p/983992#M25823</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-02-24T17:36:19Z</dc:date>
    </item>
  </channel>
</rss>

