i tried the setAnimation(true); command to set animation for my graph
but it is not working
here is a screenshot of my code

hey @keerthanareddyboredd
I think there is nothing wrong with your code i guess,I used setAnimation() command in my code

then the output is like this
when we place our mouse cursor at any where other than that blue box

when we place our cursor on blue box then the bars will glow

when we place our cursor on any bar then that single bar will glow

this is the use of animation

if you upload your output it would help to understand where is the problem .hope this would answer your question,happy coding:)

This happens also when you don’t put setAnimation.