d3 updated, gives different gravity value depends on the size of the graph