How to draw a bar graph to represent data with several categories