Add a function of drawing bar graph.