Hi, The code below adds colors to the borders. In comments, we have the code to remove the borders. The blue border surrounds the whole graph. What should be updated to have the border only up to the axis? Note that I'm not looking for other methods like "proc template; define style;... class graphwalls..." but really the solution with "proc template; define statgraph....". Regards, proc template;
define statgraph xxbarchart;
*begingraph / border=off;
begingraph / border=on borderattrs=(color=red);
*layout overlay / walldisplay=(fill);
layout overlay / border=on borderattrs=(color=blue) walldisplay=(outline);
barchart x=age / group=sex orient=vertical name='xx';
*discretelegend 'xx'/ border=off;
discretelegend 'xx'/ border=on borderattrs=(color=green);
endlayout;
endgraph;
end;
run;
ods graphics / width=15cm height=10cm;
proc sgrender data=sashelp.class template=xxbarchart;
run;
ods graphics off; When borders are removed: Here is an example of expected border limits created using another syntax:
... View more