<?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: How to sort the order of panels? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522929#M17591</link>
    <description>&lt;P&gt;On the LAYOUT DATALATTICE statement, say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SORTORDER=(ROWVAR=DESCENDINGFORMATTED)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 18:07:58 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-12-20T18:07:58Z</dc:date>
    <item>
      <title>How to sort the order of panels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522911#M17590</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table CARS as
select * 
from sashelp.cars
where Type = "SUV" or Type = "Sedan";
quit;

proc template;
define statgraph scatter;
begingraph / backgroundcolor=CXD1D0CE border=true borderattrs=(color=CXEDDA74 thickness=5);
entrytitle halign=left textattrs=(size=15pt) "Plot";
entrytitle halign=left textattrs=(size=12pt weight=normal) "Scatter Plot" / opaque=true backgroundcolor=CXFFFFFF;
layout datalattice rowvar=Type / 
				   headerlabeldisplay=value rowheaders=left
                   rowaxisopts=(griddisplay=on gridattrs=(pattern=dash) display=(ticks tickvalues))
				   columnaxisopts=(griddisplay=on gridattrs=(pattern=dash) labelattrs=(size=12pt weight=normal))
				   headerbackgroundcolor=CXFFFFFF headerlabelattrs=(size=10pt weight=normal);
layout prototype;
scatterplot x=MPG_City y=Cylinders / markerattrs=(color=CXC11B17 symbol=circlefilled) name='a';
scatterplot x=MPG_City y=EngineSize / markerattrs=(color=CX57E964 symbol=circlefilled)  name='b';
scatterplot x=MPG_City y=Horsepower / yaxis=y2 markerattrs=(color=CX2B65EC symbol=circlefilled)  name='c';
endlayout;
sidebar / align=bottom;
	discretelegend "a" "b" "c"/ border=false valueattrs=(size=11pt);
endsidebar;
endlayout;
endgraph;
end;
run;

proc sgrender data=CARS template=scatter;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_Car.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25825i76F0DB073955DBBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_Car.PNG" alt="Capture_Car.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here attached are my code and plot and I want to switch the order of panels, like "SUV" at the bottom and "Sedan" at the top.&amp;nbsp; How to solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522911#M17590</guid>
      <dc:creator>Relax</dc:creator>
      <dc:date>2018-12-20T17:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the order of panels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522929#M17591</link>
      <description>&lt;P&gt;On the LAYOUT DATALATTICE statement, say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SORTORDER=(ROWVAR=DESCENDINGFORMATTED)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522929#M17591</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-12-20T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the order of panels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522932#M17592</link>
      <description>&lt;P&gt;Thanks, Dan!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-sort-the-order-of-panels/m-p/522932#M17592</guid>
      <dc:creator>Relax</dc:creator>
      <dc:date>2018-12-20T18:31:09Z</dc:date>
    </item>
  </channel>
</rss>

