<?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: Wrap SGPANEL Column Headers (9.3) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416463#M14289</link>
    <description>No problem at all ...fastb.</description>
    <pubDate>Mon, 27 Nov 2017 16:22:40 GMT</pubDate>
    <dc:creator>shahparth260</dc:creator>
    <dc:date>2017-11-27T16:22:40Z</dc:date>
    <item>
      <title>Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416411#M14282</link>
      <description>&lt;P&gt;I am creating a panel plot using SGPANEL&amp;nbsp;with v 9.3 and some of the column headers are too long to fit in the column header box.&lt;/P&gt;
&lt;P&gt;Instead of wrapping or shrinking the text, the column header names are truncated to fit in the box (in the attached example the column header "A Name That Is Too Long To Fit" is truncated to "A Name That Is Too Lo".&lt;/P&gt;
&lt;P&gt;Is there a way to split these names to two lines or any other solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An additional question about the order of the panels: I have the data sorted with the variable study&amp;nbsp;in a different order than it appears in the plot:&lt;/P&gt;
&lt;P&gt;The left&amp;nbsp;panel should be "A Short Name", the next&amp;nbsp;panel "A Longer Name", ..., the right panel "A Name That is Too Long To Fit".&lt;/P&gt;
&lt;P&gt;But when SAS makes the graph it sorts the study&amp;nbsp;variable alphabetically and then places the panels in that order.&lt;/P&gt;
&lt;P&gt;Is there any way to fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I am using:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=raw noautolegend;
panelby study / layout=columnlattice columns = 4
onepanel /*noborder*/ colheaderpos=top novarname;
vbox result / group=entry grouporder = data;
colaxis discreteorder = data;
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416411#M14282</guid>
      <dc:creator>fastb</dc:creator>
      <dc:date>2017-11-27T14:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416447#M14283</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contributor&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the first answer for your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can update your code&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COLAXIS min= -50 max= 200 valueattrs=(size=10) labelattrs=(size=10) ;&lt;/P&gt;&lt;P&gt;change your labelattrs size accroding to your label&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416447#M14283</guid>
      <dc:creator>shahparth260</dc:creator>
      <dc:date>2017-11-27T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416455#M14285</link>
      <description>&lt;P&gt;For the second part, we added a SORTORDER option on the PANELBY statement in SAS 9.4 to handle panel sorting needs. However, for 9.3, the &amp;nbsp;best way to handle this is to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a column to assign numbers to the string values in the order you want them.&lt;/P&gt;
&lt;P&gt;2. Create a user-defined format to turn those numbers back into the string values.&lt;/P&gt;
&lt;P&gt;3. Use this column as your PANELBY variable instead of the original string column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416455#M14285</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-11-27T16:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416457#M14287</link>
      <description>Hi,&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;I appreciate for the second part.Thanks for sharing depth knowledge on the SGPANEL and time as well. This is really good information. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Good day !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416457#M14287</guid>
      <dc:creator>shahparth260</dc:creator>
      <dc:date>2017-11-27T16:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416461#M14288</link>
      <description>&lt;P&gt;Thank you so much shahparth260&amp;nbsp;and Dan for your replies to my question; I can now create the plot that I need with this information!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 16:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416461#M14288</guid>
      <dc:creator>fastb</dc:creator>
      <dc:date>2017-11-27T16:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wrap SGPANEL Column Headers (9.3)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416463#M14289</link>
      <description>No problem at all ...fastb.</description>
      <pubDate>Mon, 27 Nov 2017 16:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Wrap-SGPANEL-Column-Headers-9-3/m-p/416463#M14289</guid>
      <dc:creator>shahparth260</dc:creator>
      <dc:date>2017-11-27T16:22:40Z</dc:date>
    </item>
  </channel>
</rss>

