Skip to content

Function: d3pInterpolateSeries() ​

ts
function d3pInterpolateSeries(from, to): D3PSeriesInterpolator;

Defined in: core/series.ts:441

Interpolator between two drawings of a series. Both are first made as long as each other by a merge on the keys (the x values): points with the same key are paired, and a point without a partner is paired with the nearest point of the other drawing, so it is born (or dies) on its neighbor. The positions are then interpolated. from may be a number (the baseline) to grow from. Keys that are not sorted fall back to pairing by index.

Parameters ​

from ​

number | D3PPlacedSeries

to ​

D3PPlacedSeries

Returns ​

D3PSeriesInterpolator