Skip to main content
100%

Assignment 6: Bar Chart with a Sequential Color Scale

✓ Published0🌍 Public
Aamrubal
Last edited Mar 7, 2022
Created on Mar 7, 2022
Forked from HTML Starter

This example presents a bar chart showing the number of women in select STEM majors, with each bar colored using a sequential green color scale that encodes the value. The visualization is rendered as an SVG using D3 v7, with a React-based project structure. It loads data from a CSV file, uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.scaleSequential` with `d3.interpolateGreens` for coloring. A legend is added via the d3-legend library to explain the color mapping.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes