Recalculate the graph dimensions after the page has been loaded.