cardinal.tension()

cardinal.tension(tension)

Returns a cardinal curve with the specified tension in the range [0, 1]. The tension determines the length of the tangents: a tension of one yields all zero tangents, equivalent to curveLinear; a tension of zero produces a uniform Catmull–Rom spline. For example:

var line = d3.line().curve(d3.curveCardinal.tension(0.5));
doc_D3_Js
2016-11-24 10:25:30
Comments
Leave a Comment

Please login to continue.