Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Mmandadi1999
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This visualization displays the relationship between age and average body mass index using binned bar charts. The data comes from a CSV file, with BMI calculated from weight and height values. The code imports D3 modules through ES6 syntax, using scaleLinear, axisBottom, axisLeft, bin, and sum APIs to create the SVG rendering. Each bar represents an age bin, with its height reflecting the average BMI for that group. Axis tick lines extend across the chart to create a grid-like structure, with labels for both axes and a title.

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