Spline Transition
A path of normally distributed random data, rendered as a smooth basis-interpolated line, continuously scrolls leftward as new points append and old ones shift off. The animation loops by chaining transitions with `d3.active` and `transition.on`, updating the `d` attribute via `d3.line` before translating the SVG path. A `clipPath` rect hides the sliding tangent change at the edges. The example uses d3.v4, random samples from `d3.randomNormal`, and SVG axes with `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionThis example is the third of three in the Path Transitions tutorial; see the previous example for context.
When transitioning a transform on a path using basis interpolation, you must clip the path by two additional control points so that the change in tangent is not visible while the path slides left.