Made animated graph compatible on all screens.