Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 2 Question 1

Public visualization

Viewing a saved revision (read-only)

33f590f02b6e431fa36b2461a3ac5cab

Assignment 2 Question 1

0 stars0🌍 Public
MMichael Biancardi
Last edited Jul 19, 2023
Created on Jul 17, 2023
Forked from BMI By Age

This example visualizes the average salary by age using a histogram created from a CSV dataset. It loads D3 v7 from UNPKG and employs d3.select, d3.csv, d3.scaleLinear, d3.scaleTime, d3.axisLeft, d3.axisBottom, d3.extent, d3.bin, and d3.sum to bin the data by age, compute average salaries, and render an SVG chart with labeled axes and orange rectangles.

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.