Properly resize trends charts if window is resized.