Skip to main content
100%

Monotone Interpolation

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Aug 10, 2012

This example demonstrates monotone interpolation, a curve-fitting method that produces a smooth line through a series of points without overshooting the local data range. Six yearly data points from 2001 to 2006 are plotted as white circles with steelblue outlines on a chart with time-scaled X and linear Y axes. The code uses D3 v3’s `d3.svg.line` with the `"monotone"` interpolator to generate the SVG path, while `d3.time.scale` and `d3.scale.linear` handle the axes. The chart is rendered as an SVG element with axis and line classes styled via CSS.

AI-generated description
gpl-3.0 Licensed

Similar vizzes