Skip to main content
100%

Assignment 4: Bar Chart

✓ Published0🌍 Public
Aamrubal
Last edited Apr 25, 2022
Created on Feb 22, 2022
Forked from HTML Starter

This example shows the number of women in five selected STEM majors in a bar chart, with the count of females on the y-axis and the major names on the x-axis. The data is loaded from a CSV file derived from the Corgis graduates dataset. The chart is rendered as an SVG using D3 v7, with `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` to draw the axes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

CSV file has been edited to only include first 5 majors listed in orginal CSV file.

Altered CSV: https://gist.githubusercontent.com/amrubal/c58641421b7e0fbe39a736f8ecf512e9/raw/1b02116a0485727bc64cc0bd6bdf4f020a08c1da/grads.csv

Original CSV: https://corgis-edu.github.io/corgis/csv/graduates/

MIT Licensed

Similar vizzes