block by hwangmoretime da8e72b5e680c827d6dd

Point Tracking for Non-Linear Lines: III

Full Screen

What This Shows

Using data from the US Census, this visualization displays popular names that have historically been androgynous.

Technical

Control points are not intersected by the path for several non-linear interpolations for lines (“basis” in this case). Because of this, point tracking for non-linear lines should be calculated from the svg-path rather than from the d3-scales. Mike Bostock has two examples showing how to do this with a single path. This gist shows one approach for point tracking with multiple paths. Other approaches are shown here and here.

This approach saves precomputed closestPoints of each data point’s linear coordinates respective to their parent path. The precomputation took 63.85 seconds (~0.16 seconds per point). What still remains for this gist is to automatically generate a precomputation file; it was manually constructed for this dataset.

index.html

steady_andro.csv