Sets the rendered chart dimensions according to the screen dimensions