proc template;
define statgraph fringeplot;
dynamic VAR VARLABEL;
begingraph;
entrytitle "Histogram and Fringeplot";
layout overlay / xaxisopts=(label=VARLABEL)
yaxisopts=(offsetmin=.03);
fringeplot VAR / datatransparency=.75
fringeheight=3pct;
histogram VAR;
endlayout;
endgraph;
end;
run;
proc sgrender data=sashelp.cars template=fringeplot;
dynamic var="weight" varlabel="Weight (LBS)";
run;