Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes