我正在研究带有x和y轴的d3.js .v4图形,我需要你的帮助.
描述:
我被困在这里,无法找到解决方案,在这个带圆角的图像路径上制作路径
这是我的线功能代码
// the path generator for the line chart
line = d3.line()
.x(function(d, i) {
return xScale(i);
})
.y(function(d, i) {
return yScale(d);
})
.curve(d3.curveStep);
Run Code Online (Sandbox Code Playgroud)
我试过基数,单调和catmull buth无法归档所需的路径.
是否可以在d3.curveStep上圆角?