You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
The text was updated successfully, but these errors were encountered:
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.
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;
}
The text was updated successfully, but these errors were encountered: