This is the working copy of my histogram.  All the commented out code was for me to get the spacing of the display right, no matter how big the histogram gets.