Skip to content

Nodes position is overlapping on each other and setting link length dynamically #445

@onlyreddy

Description

@onlyreddy

Hi,

I'm adding nodes dynamically based on user click of node and thankfully that's working. But the position of the nodes are not proper they are overlapping on each other. It's kind of a mess. The user is unable to find the parent and child relationships here.

When I checked the source code of the react-d3-graph, and it's internally using d3 packages. I believe d3 provides that feature like d3 force-directed graph and in those nodes aligned properly. Demo [Link].(https://observablehq.com/@d3/force-directed-graph-canvas?collection=@d3/d3-drag).

One more help is needed to increase the link length of a particular link in the graph?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions