add zoom to the xy graph