I want to be able to control the slope of Bezier curves that I generate with d3.linkHorizontal() function. So far I've achieved that by changing the values directly in the node modules, but that does not seem like a correct way to do it. I want to change the following d3.linkHorizontal() function:
function curveHorizontal(context, x0, y0, x1, y1) {
context.moveTo(x0, y0);
context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
}
into something like this:
function curveHorizontal(context, x0, y0, x1, y1) {
context.moveTo(x0, y0);
context.bezierCurveTo(x0 + MyParameter, y0, x1 - MyParameter, y1, x1, y1);
}
Thank you!