I am having d3.forceSimulation and I have set link distance and forceCenter and so on. But can I somehow know how wide and height the chart will be? Like if the link distance is 150 and centered, maximum w/h would be 150? I don't know how nodes will be connected in advance.
var simulation = d3.forceSimulation()
.force("link", d3.forceLink().id(function (d) {
return d.id;
}).distance(150).strength(2))
.force("charge", d3.forceManyBody())
.force("center", d3.forceCenter(width / 2, height / 2));