Fixed bug in chart resizing.
Merge pull request #9 from tsherif/chart-resize-fix

Fixed bug in chart resizing. Fixes #8.