Skip to main content
100%

Activity 6_5_Histogram_Vizualization

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example visualizes the relationship between age and average body mass index (BMI) using a histogram. The d3.bin generator groups the data by age, and rectangles display the average BMI for each bin. The visualization uses d3.scaleLinear for both axes, with d3.axisBottom and d3.axisLeft for labeling. Data comes from a CSV file loaded via d3.csv, and the chart is rendered as SVG with custom styling for tick marks and rectangle fills.

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