Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMI by Age

Public visualization

BMI by Age

0 stars0🌍 Public
MManideeprenikindi
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This chart displays average body mass index across different ages using data from a CSV file. It bins the dataset by age and computes each bin’s mean BMI, rendering the results as orange SVG rectangles with white strokes. The visualization uses D3 v7’s `scaleLinear`, `bin`, `area`, `curveBasis`, and `axisBottom`/`axisLeft` APIs, with axes drawn using D3’s axis components. The data is imported via `d3.csv`, and BMI is calculated from height and weight fields before rendering.

AI-generated description

.

Comments

Sign in to join the discussion.

MIT Licensed