Skip to main content
100%

Activity 6 Task 5 Histogram

✓ Published0🌍 Public
Ssreekarthanda@gmail.com
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This histogram shows the average Body Mass Index across age groups from CDC survey data, with BMI calculated from weight and height. The visualization uses D3 v7’s `bin` generator to group ages, then renders orange rectangles scaled by `scaleLinear` and axes with `axisBottom` and `axisLeft`. Data is loaded via `csv`, and SVG output displays gridlines and labels for Age and Average Body Mass Index.

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. This visualization is a scatterplot of Body Mass Index by gender from the CDC Dataset.

Body Mass Index is calculated using the following formula: [weight (lb) / height (in) / height (in)] x 703

MIT Licensed

Similar vizzes