Add automatic charts resize behavior

The charts are now rerendered at the end of window resize.