Animation added for graph