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

can i make the elbow function vertical? #11

Closed
blu94 opened this issue Aug 18, 2016 · 1 comment
Closed

can i make the elbow function vertical? #11

blu94 opened this issue Aug 18, 2016 · 1 comment

Comments

@blu94
Copy link

blu94 commented Aug 18, 2016

Can i make this function become vertical?
this is the elbow function for horizontal
function elbow(d) {
return "M" + d.source.y + "," + d.source.x
+ "H" + (d.source.y + (d.target.y-d.source.y)/2)
+ "V" + d.target.x
+ "H" + d.target.y;
}

@justincy
Copy link
Owner

The third bullet point in the Notes section of the Readme explains how to make the chart display vertically. Basically just switch the x and y values so that their in the normal Cartesian order (they are currently swapped to enable the horizontal display). The x and y will need to be changed throughout the code, including the elbow function.

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