Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Iindushashi.g@gmail.com
Last edited Jun 12, 2023
Created on Jun 12, 2023
Forked from Hello VizHub

This example shows the average Body Mass Index (BMI) of individuals binned across age groups, with the x-axis displaying age and the y-axis displaying average BMI. The data is loaded from a CSV file hosted on GitHub, with BMI calculated from weight and height columns. Using D3 v7, the visualization employs scales, axes, and a binning function to aggregate the data. It renders orange rectangles for each bin, with axis labels and a title, demonstrating D3's `csv`, `scaleLinear`, `axisBottom`, `axisLeft`, and `bin` APIs.

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