bar with threshold
This bar chart displays the percentage of free sugars intake from total energy across different age groups, comparing data from the 2020 NDNS Rolling Programme survey. The visualization highlights a single time period (2014/15-2015/16) by coloring bars based on whether values fall above or below a red dashed threshold line set at 4%. The code uses d3.v5 with SVG rendering, employing d3.scaleBand for the categorical x-axis and d3.scaleLinear for the y-axis. A linearGradient definition fills the bars blue below the threshold and red above it, with the threshold line drawn using SVG line elements.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/GitNoise/'>GitNoise</a>'s block: <a href='http://bl.ocks.org/GitNoise/ec1c0ad8674e5769f39f6c141a60a913'>multiline with threshold </a>
forked from <a href='http://bl.ocks.org/GitNoise/'>GitNoise</a>'s block: <a href='http://bl.ocks.org/GitNoise/9cf7f63a1451ef885c56a5160664bf05'>multiarea with threshold </a>