Suggest starting here with a Google advanced search argument on the SAS.COM site.
histograms site:sas.com
Consider using SAS ODS for generating an image file such as a GIF.
The SAS support http://support.sas.com/ website has much to offer with SAS-hosted documentation, code samples, and supplemental topic-related reference papers.
The easiest way I can think of to control the spacing (aka "bucketing" or "binning") in a histogram, is to create a user-defined format. The following example creates some fake/random data to demonstrate gchart's automatic binning (with levels=4), and then using a user-defined format (which I call 'myfmt') to make the bins exactly the way you want them ...
data foo;
do i = 1 to 1000;
value = 500 + 300*rannor(1);
output;
end;
run;
title "Using default gchart ranges";
proc gchart data=foo;
vbar value / type=freq levels=4;
run;
title "Controlling ranges with user-defined format";
proc gchart data=foo;
format value myfmt.;
vbar value / type=freq discrete;
run;
Message was edited by: Robert Allison @ SAS