multiline with threshold
✓ Published0🌍 Public
PPatrick Wojda
Last edited Jan 23, 2020
Created on Jan 23, 2020
The chart shows trends in free sugar intake across age groups over four time periods, with a red-shaded region marking values above a 12% threshold and a dashed line at that cutoff. Each line represents a demographic category, encoded as an SVG path using d3.line and d3.scalePoint for the time axis. The threshold overlay is drawn with a linearGradient that transitions from blue to red based on y-position, while the data lines are stroke-filled using that same gradient reference. The source CSV is parsed via d3.csv, and axes are rendered with d3.axisBottom and d3.axisLeft.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed