Resize graph dynamically if window is resized
Graph check new positions if resized