Fixed a bug so that now charts resize when window is resized (when new charts need to be drawn, though).