apply zoom to graph