fixing histogram tooltips
Tried to make the shortening of the titles smarter, but it'll wait