Skip to main content
100%

BMI by Age

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

This histogram displays the average body mass index (BMI) of survey respondents across different ages, using orange bars on an SVG chart. It loads a remote CSV dataset, bins the age values using `d3.bin`, scales the axes with `d3.scaleLinear`, and computes per-bin averages with `d3.sum`. Axes are rendered via `d3.axisBottom` and `d3.axisLeft`, with labels and a title added as SVG text elements.

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