BMI by Age
✓ Published0🌍 Public
This chart displays the average Body Mass Index (BMI) for individuals across different ages, using a binning approach. The data is loaded from a CSV file and processed to calculate BMI from height and weight. The visualization renders as a series of orange bars, one for each age bin, with the height of each bar representing the average BMI. The implementation uses D3 v7, specifically leveraging the `csv`, `bin`, `scaleLinear`, `axisLeft`, `axisBottom`, `extent`, and `sum` functions. A custom D3 selection and join operation appends the rectangles to the SVG canvas.
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