<?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: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277449#M9883</link>
    <description>&lt;P&gt;Hi, Sanjay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only SAS 9.2 is available in my working computer, I am wondering if there is other potential options, thanks !&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 04:43:46 GMT</pubDate>
    <dc:creator>Wang_Yajun</dc:creator>
    <dc:date>2016-06-15T04:43:46Z</dc:date>
    <item>
      <title>Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277418#M9881</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the subject indicates, my sas version is 9.2, so the fitpolicy option in the xaxis statment only have the following values: STAGGER,ROTATE,THIN and its combinations, &lt;STRONG&gt;without the split option&lt;/STRONG&gt;. &amp;nbsp;Since my values for the axis is a little bit long , running the code below generates an ugly graph. I am wondering if there is any other possible way to display the values on the X axis in mutiline mode? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = Ind_stat; &lt;BR /&gt;xaxis type = discrete label = "ind" &lt;STRONG&gt;fitpolicy = staggerrotate&lt;/STRONG&gt; display = (noticks); &lt;BR /&gt;yaxis label = "# of Customers";&lt;BR /&gt;vbar hy/response = n datalabel;&lt;BR /&gt;run; &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12656i8EEE3E1184002871/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="91694361635596462.jpg" title="91694361635596462.jpg" /&gt;</description>
      <pubDate>Wed, 15 Jun 2016 00:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277418#M9881</guid>
      <dc:creator>Wang_Yajun</dc:creator>
      <dc:date>2016-06-15T00:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277436#M9882</link>
      <description>&lt;P&gt;There are not many options with SAS 9.2. &amp;nbsp;With SAS 9.3 you can use SGAnnotate to replace the tick values with split values. &amp;nbsp;With SAS 9.4, you can get split tick values from the procedure itself.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 03:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277436#M9882</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-15T03:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277449#M9883</link>
      <description>&lt;P&gt;Hi, Sanjay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only SAS 9.2 is available in my working computer, I am wondering if there is other potential options, thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 04:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277449#M9883</guid>
      <dc:creator>Wang_Yajun</dc:creator>
      <dc:date>2016-06-15T04:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277992#M9898</link>
      <description>&lt;P&gt;One way with SGPLOT would be to use the HBAR statement instead of VBAR. &amp;nbsp;Then, the long category labels are displayed on the Y axis. &amp;nbsp;Better than slanted labels on the x-axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way would be to use GCHART procedure, and use the SplitChar option as shown in this example: &amp;nbsp;&lt;A href="http://support.sas.com/kb/45/123.html" target="_blank"&gt;http://support.sas.com/kb/45/123.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 18:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/277992#M9898</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-16T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/278664#M9918</link>
      <description>&lt;P&gt;Which solution did you prefer?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 13:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/278664#M9918</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-06-20T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display X Axis Value in multiple lines using PROC SGPLOT in SAS9.2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/278670#M9919</link>
      <description>&lt;P&gt;Hi, Sanjay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Hbar statement in SGPLOT looks a little bit better than VBar statement, but it still looks weird.&amp;nbsp;PROC GCHART solves this problem prefectly in SAS 9.2, thanks for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 13:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-X-Axis-Value-in-multiple-lines-using-PROC-SGPLOT-in-SAS9/m-p/278670#M9919</guid>
      <dc:creator>Wang_Yajun</dc:creator>
      <dc:date>2016-06-20T13:36:10Z</dc:date>
    </item>
  </channel>
</rss>

