Redraw graphs on window resize