d3.curveMonotoneY()

d3.curveMonotoneY(context)

monotoneY

Produces a cubic spline that preserves monotonicity in x, assuming monotonicity in y, as proposed by Steffen in A simple method for monotonic interpolation in one dimension: “a smooth curve with continuous first-order derivatives that passes through any given set of data points without spurious oscillations. Local extrema can occur only at grid points where they are given by the data, but not in between two adjacent grid points.”

doc_D3_Js
2016-11-24 10:25:54
Comments
Leave a Comment

Please login to continue.