Skip to main content
100%

BMI by Age

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

This example visualizes the relationship between age and average Body Mass Index (BMI) using a binned bar chart. The data is loaded via `d3.csv` from a GitHub gist, with BMI values calculated from weight and height measurements. The visualization uses D3 v7 APIs including `d3.bin`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` to group ages into bins and display the average BMI per bin as purple rectangles on an SVG canvas. Axes are customized with tick styling and labels for both dimensions.

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