live update of bar graph