histogram of categorical data now displays the bars in correct colors
(fixed #1750)