update bar graph