rerender charts when resizing