Basic histogram widget

I think this file might have a bunch of tabs instead of spaces, or perhaps some automated indenting just ran wild. :)