I have a finicky problem with laying out labels in a GTL datalattice. This almost does what I want, with one problem: the sidebar 'Cat 1 Description' (which describes the rowheaders) should be to the left of the rowheaders 'Type A' and 'Type B', and I can't figure out how to get it there. proc template;
define statgraph test;
begingraph;
layout datalattice rowvar=cat1 /
row2axisopts=(label='Cat 2 Description')
headerlabeldisplay=value headerlabellocation=outside rowheaders=left;
sidebar / align=left;
entry 'Cat 1 Description' / rotate=90;
endsidebar;
layout prototype;
barchart x=cat2 y=pct_row /
orient=horizontal yaxis=y2;
endlayout;
endlayout;
endgraph;
end; This is the vertical bar equivalent, which is laid out just how I like it: proc template;
define statgraph test;
begingraph;
layout datalattice columnvar=cat1 /
columnaxisopts=(label='Cat 2 Description')
headerlabeldisplay=value headerlabellocation=inside columnheaders=top;
sidebar / align=top;
entry 'Cat 1 Description';
endsidebar;
layout prototype;
barchart x=cat2 y=pct_row /
orient=vertical;
endlayout;
endlayout;
endgraph;
end; Things I've tried that didn't work: headerlabellocation=inside (changes the row headers to be horizontal text at the top of the cell, at least in SAS 9.3); adding a cell with the row label text within a gridded layout (too much whitespace).
... View more