proc template;
define statgraph histogramparm;
begingraph;
entrytitle "Histogram of Vehicle Weights";
layout overlay;
histogramparm x=midpoint y=frequency;
endlayout;
endgraph;
end;
run;
data bins;
input Midpoint Frequency;
label midpoint="Vehicle Weight (LBS)";
datalines;
2000 18
3000 208
4000 159
5000 36
6000 6
7000 1
;
run;
proc sgrender data=bins template=histogramparm;
run;