modified the graph to be zoomed