Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Hharsha
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example visualizes the average body mass index (BMI) across different ages using a bar chart. The data is loaded from a CSV file and processed to calculate BMI from height and weight values. The chart is rendered as SVG using D3 v7, with scales, axes, and rectangular bins created through the `d3.bin` and `d3.area` APIs. Custom margins and tick styling are applied via CSS to present the distribution clearly.

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