histogram with categorical variables allowed