fix bar chart for categorical dimension