Gradient Bump
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jul 23, 2013
Each row of the tab-separated data becomes a bump chart path connecting three categorical ordinal positions, a, b, and c, across the horizontal axis. The vertical position encodes each row's weight value, and the stroke width is proportional to that same weight. For each segment between positions, the stroke uses a linearGradient with userSpaceOnUse coordinates, interpolating between two HCL color scales per column using d3.interpolateHcl. A white halo path is drawn beneath to provide contrast. The visualization uses d3.svg and d3.scale.ordinal to arrange the staggered curves, demonstrating a gradient-based bump chart prototype.
AI-generated descriptionA work-in-progress prototype of a bump chart using stroke gradients.
gpl-3.0 Licensed