ensure graph is displayed in correct size across browsers