Assignment 6: Bar Chart with a Sequential Color Scale
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed