<?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: sgpanel - showing group on axis #2 (ordering &amp;amp; split) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262741#M9466</link>
    <description>perfect! thank you</description>
    <pubDate>Sun, 10 Apr 2016 16:01:03 GMT</pubDate>
    <dc:creator>Dave25</dc:creator>
    <dc:date>2016-04-10T16:01:03Z</dc:date>
    <item>
      <title>sgpanel - showing group on axis #2 (ordering &amp; split)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262611#M9452</link>
      <description>&lt;P&gt;Thought I had it, but ran into two problems I can't seem to solve:&lt;/P&gt;
&lt;P&gt;1) why won't the year (group) sort as coded in the &lt;SPAN&gt;hbarparm line, "GROUPORDER= ascending"&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;how do I get the value of q (category) to "split"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data a; input q $ year pct;&lt;BR /&gt;cards;&lt;BR /&gt;4yr,Coll 2013 0.44&lt;BR /&gt;2yr,Coll 2013 0.43&lt;BR /&gt;4yr,Coll 2014 0.29&lt;BR /&gt;2yr,Coll 2014 0.63&lt;BR /&gt; ;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=a noautolegend; &lt;BR /&gt; hbarparm category=q response=pct / group=year groupdisplay=cluster GROUPORDER= ascending ; &lt;BR /&gt; yaxistable q / location=inside position=left&lt;BR /&gt; valuejustify=right label = ' ' ; &lt;BR /&gt; yaxistable year/ class=year classdisplay=cluster location=inside position=left&lt;BR /&gt; valuejustify=right valueattrs=(size=6) label = ' ' ; &lt;BR /&gt; xaxis display=(noline noticks nolabel) grid;&lt;BR /&gt; yaxis display=none FITPOLICY= SPLITALWAYS SPLITCHAR="," ;&lt;BR /&gt; run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 22:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262611#M9452</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-08T22:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis #2 (ordering &amp; split)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262629#M9453</link>
      <description>&lt;P&gt;Remember, now you are using the YAXISTABLE to provide the labels. &amp;nbsp;So, you need to put the same GROUPORDER and CLASSORDER for the HBARPARM and the YAXISTABLE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=a noautolegend; &lt;BR /&gt;hbarparm category=q response=pct / group=year groupdisplay=cluster &lt;STRONG&gt;GROUPORDER=reversedata&lt;/STRONG&gt; ; &lt;BR /&gt;yaxistable q / location=inside position=left&lt;BR /&gt;valuejustify=right label = ' '; &lt;BR /&gt;yaxistable year/ class=year classdisplay=cluster location=inside position=left&lt;BR /&gt;valuejustify=right valueattrs=(size=6) label = ' ' &lt;STRONG&gt;classORDER=reversedata&lt;/STRONG&gt;; &lt;BR /&gt;xaxis display=(noline noticks nolabel) grid;&lt;BR /&gt;yaxis display=none FITPOLICY= SPLITALWAYS SPLITCHAR=",";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For splitting the strings for "q", I'll have to look at the syntax for YAXISTABLE. &amp;nbsp;I will check and get back.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 03:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262629#M9453</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-04-09T03:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis #2 (ordering &amp; split)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262673#M9454</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Thanks again for your help.&lt;/FONT&gt;&lt;/P&gt;
&lt;H1&gt;&lt;FONT size="2"&gt;1) I initially thought that I might need to specify order in the YAXISTABLE Statement, but I bit on what I saw in the on-line documentation:&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;CLASSORDER=DATA | REVERSEDATA | ASCENDING | DESCENDING&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;specifies the order in which the class values are displayed.&lt;/EM&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Restriction&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;EM&gt;This option is ignored when the axis table is used with DOT, HBAR, VBAR, HLINE, and VLINE statements. If the GROUPORDER= option is specified in the chart, then that group order variable is used as the class order variable for all axis tables.&lt;/EM&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- and, still can't see why REVERSEDATA will work, but ASCENDING won't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Also thought that the split needed to be handled in the YAXISTABLE Statement, but have been unable to find anything related to this in the Documentation.&amp;nbsp; Look forward to any suggestions you may have!&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 14:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262673#M9454</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-09T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis #2 (ordering &amp; split)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262740#M9465</link>
      <description>&lt;P&gt;Tick value splitting is supported on the YAXIS, but not in the YAXISTABLE. &amp;nbsp;For the table, the width of the table is computed based on the width of the string. &amp;nbsp;I do not see any related options in the YAXISTABLE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the look you are going for, I suggest keeping the Y axis for the "q" values and using Axistable only for the Year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=a noautolegend noborder; &lt;BR /&gt;hbarparm category=q response=pct / group=year groupdisplay=cluster GROUPORDER= ascending ; &lt;BR /&gt;/*yaxistable q / location=inside position=left*/&lt;BR /&gt;/*valuejustify=right label = ' ' ; */&lt;BR /&gt;yaxistable year/ class=year classdisplay=cluster location=inside position=left&lt;BR /&gt;valuejustify=right valueattrs=(size=6) label = ' ' ; &lt;BR /&gt;xaxis display=(noline noticks nolabel) grid;&lt;BR /&gt;yaxis display=(noline nolabel notick) FITPOLICY= SPLITALWAYS SPLITCHAR="," ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2679i0CB6FEE0DBDDC172/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="GroupLabel_2.png" title="GroupLabel_2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 15:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262740#M9465</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-04-10T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: sgpanel - showing group on axis #2 (ordering &amp; split)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262741#M9466</link>
      <description>perfect! thank you</description>
      <pubDate>Sun, 10 Apr 2016 16:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgpanel-showing-group-on-axis-2-ordering-amp-split/m-p/262741#M9466</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-04-10T16:01:03Z</dc:date>
    </item>
  </channel>
</rss>

