animation for bar graph