make chart zooming smoother