BMI by Age
✓ Published0🌍 Public
A scatterplot of average Body Mass Index (BMI) by age, showing data from the CDC dataset. The visualization groups the data into age bins, calculating the mean BMI for each bin, and renders the results as a bar chart. It uses D3 v7 for data loading, scaling, binning, and SVG rendering, with code demonstrating local ES6 module imports. The axes and labels are styled via D3's `axisLeft` and `axisBottom` APIs, and the chart is styled with purple bars.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules. 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