resize the graphs based on how big the viewable area is