Fixed bug in chart resizing. Fixes #8.