Skip to main content
100%

Histogram

✓ Published0🌍 Public
Ssumikshab
Last edited Dec 7, 2021
Created on Dec 7, 2021

This histogram visualizes the average Body Mass Index of CDC survey participants by age, using binned age groups and an indigo bar chart overlaid on an SVG canvas. The code imports specific D3 v7 modules like `bin`, `scaleLinear`, `axisLeft`, and `axisBottom` to generate the binning, axes, and gridlines. It computes BMI from weight and height data loaded via `csv()`, then renders the bars with color fills and white strokes.

AI-generated description

This visualization is a scatterplot of Body Mass Index by gender from the CDC Dataset.

Body Mass Index is calculated using the following formula: [weight (lb) / height (in) / height (in)] x 703

MIT Licensed

Similar vizzes