I'm currently working with a network diagram that consists of circle elements and lines connecting them. However, I've run into an issue where sometimes there are so many circles that they extend beyond the edge of my screen (see image attached). The edges of the image don't cut off, it's simply the limitation of my screen :)
The diagram is created using a force layout (code available in this fiddle). Adjusting the variables width = 400;
height = 500;
doesn't seem to resolve the issue.
What variable am I overlooking here? I'd like to prevent the circles from going off-screen, or is this behavior expected?
Thank you, Neil