Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right-angled edges #286

Open
campriceaustin opened this issue Jan 28, 2020 · 1 comment
Open

Right-angled edges #286

campriceaustin opened this issue Jan 28, 2020 · 1 comment

Comments

@campriceaustin
Copy link

Is it possible to have the edges be straight, ninety degree right angles? I can't find anything in the documentation or examples.

@j6k4m8
Copy link

j6k4m8 commented May 7, 2020

Use curve: d3.curveStep in your edge metadata:

g.setEdge(v, w, {
    curve: d3.curveStep
});

You can see all options for curve shapes here: https://github.com/d3/d3-shape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants