Sinusoidal interpolation
This example demonstrates sinusoidal interpolation between tide event data points, contrasting smooth transitions during slack water with curved transitions during flood and ebb phases. A blue line traces the interpolated speed values over time, while circles mark the original observed measurements. The visualization uses a custom interpolation function that applies a sine-based easing to each segment, depending on whether the preceding event is classified as slack or non-slack. Built with D3 v4, it relies on `d3.timeParse`, `d3.scaleLinear`, `d3.line`, and `d3.csvParse` to process inline CSV data and render an SVG path.
AI-generated descriptionJoin points with a sinusoidal interpolator, for Chris Henrick.
Compare with:
<a href='http://bl.ocks.org/Fil/11491717cad91e34c2bf9de00eac8dd9'>Parabolic interpolation</a>
<a href='https://bl.ocks.org/Fil/ca9ac01fed9d158380b043b45ff2cd2c'>Standard d3 curve interpolation</a>
<a href='https://bl.ocks.org/Fil/6e83bb512f22ec579f6226b7692530fb'>Fourier interpolation</a> ** (the best IMHO)
Built with blockbuilder.org