BMI by Age
✓ Published0🌍 Public
This chart displays the average body mass index across ages as orange bars, with axes labeled for both variables. It loads CSV data from a GitHub gist, computes BMI from height and weight, and bins the ages using `d3.bin`. The visualization uses D3 v7 APIs including `scaleLinear`, `axisBottom`, `axisLeft`, and `area`, rendering SVG elements with `select` and `join` for the rectangles. Axes are customized by removing domains and adding text labels.
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.
MIT Licensed