adding animation to chart bar