remove chartwidth/chartheight attributes
add max-width/height properties
Merge pull request #2 from thelmanews/compute-width-height

Compute width height