BMI by Age
✓ Published0🌍 Public
This visualization displays the average Body Mass Index (BMI) across different ages using a binning approach. The chart uses orange bars with white strokes to represent binned age groups, with the y-axis showing BMI values and the x-axis showing age. The code leverages d3.bin, d3.scaleLinear, d3.scaleTime, d3.axisBottom, and d3.axisLeft APIs from D3 v7 to process and render the data. The visualization imports data from a CSV file hosted on GitHub and computes BMI values using the formula (weight/height²) × 703. The SVG rendering includes custom axes with tick styling and labeled text elements for the chart title and axis descriptions.
AI-generated descriptionMIT Licensed