Area Chart of BMI by Age
This visualization shows the relationship between age and Body Mass Index (BMI), displaying BMI as a filled area chart across age values. The chart uses a smooth curve (via d3.curveBasis) to connect data points, with the area filled in maroon, and includes labeled axes for Age and Body Mass Index. The data comes from a CDC dataset accessed through a public GitHub gist, with BMI calculated from height and weight fields using the formula weight (lb) / height (in)² × 703. The rendering uses d3.select, d3.scaleTime, d3.scaleLinear, d3.axisBottom, d3.axisLeft, d3.area, and d3.extent, all within an SVG canvas.