Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Task 5 Histogram

Public visualization

Viewing a saved revision (read-only)

8b902a5dec6f454db567f540b2de7e5f

Activity 6 Task 5 Histogram

0 stars0🌍 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