lloydrichards.dev

D3

DATA-VISUALIZATION

July 22, 2020
D3.js and Line Chart
Drawing a line through seven values using D3 linear scales and cardinal interpolation.

This experiment draws a line through the original seven sample values. The horizontal axis shows each value's index. D3's cardinal curve smooths the line between the points.

01234560102030405060708090100