Reload graph on resize