Automatically size charts based upon the canvas size.

This allows charts to be drawn to the canvas's current size, wether this be automatically determined through css
or through manually sizing the canvas, you can't rely on the canvas reported size as it defaults to a imo silly size.

Note I recompressed the js with this fix but as there was no noted preferred build chain I used uglifier which I had
to hand. Hence the change.