Remove margin calculations from chart dimensions, these complicated matters, and should be done using css