Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMI by Age

Public visualization

BMI by Age

0 stars0🌍 Public
VVinay Vemuri
Last edited Jun 26, 2023
Created on Jun 26, 2023

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 description

Comments

Sign in to join the discussion.

MIT Licensed