Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMI by Age

Public visualization

Viewing a saved revision (read-only)

aab7a8dd986d45b79015eafdf4feb628

BMI by Age

0 stars0🌍 Public
Ssaikrishnabussa
Last edited Jul 27, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

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 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.