Skip to main content
100%

Assignment 2 Question 1

✓ Published0🌍 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.
MIT Licensed

Similar vizzes