showing bar graph function added