| Overview |
The DATALATTICE layout is similar to DATAPANEL, but it requires a row classifier, a column classifier, or both.
In the following example,
proc template;
define statgraph datalattice;
begingraph;
entrytitle "Annual Furniture Sales Comparisons";
layout datalattice rowvar=country columnvar=year /
rowdatarange=union
headerlabeldisplay=value
headerbackgroundcolor=GraphAltBlock:color
rowaxisopts=(display=(tickvalues) griddisplay=on
linearopts=(tickvalueformat=dollar12.))
columnaxisopts=(display=(tickvalues)
timeopts=(tickvalueformat=monname3.));
layout prototype / cycleattrs=true;
seriesplot x=month y=TotalActual / name="Actual";
seriesplot x=month y=TotalPredict / name="Predict";
endlayout;
sidebar / align=bottom;
discretelegend "Actual" "Predict" / border=false;
endsidebar;
endlayout;
endgraph;
end;
run;

In a DATALATTICE layout, the labels for the classification levels can be set to appear outside or inside the grid.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.