bar graph implementation