Constructing a bar graph for non-numerical data