you-draw-it
✓ Published0🌍 Public
11wheel
Last edited Jan 15, 2017
Created on Jan 15, 2017
This interactive chart displays U.S. debt as a percentage of GDP from 2001 to 2015, showing the historical trend up to 2008 and inviting the user to draw the subsequent path. After 2008, the line is dashed and user-controlled via `d3.drag`; dragging updates the data points, and once all years are defined, a clipped area reveals the actual values through a `clipPath` with a `transition`. The visualization uses D3 v4 APIs including `d3.area`, `d3.line`, and `d3.mouse`, rendering as SVG with axes and a grid, based on data embedded in the script.
AI-generated descriptionEarly/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!