Fixed graphs resize when animation is enabled