Fork of Activity-6_Question-3
✓ Published0🌍 Public
A scatterplot displays the relationship between horsepower and engine size for 44 vehicles, with each point colored by model year. The code uses d3.select, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.scaleOrdinal with schemeDark2 to build the SVG chart. A grey inner rectangle frames the plotting area, and a legend identifies years as “Generation” labels. The data comes from a CSV file containing car specifications loaded via d3.csv.
AI-generated descriptionMIT Licensed