Unlisted
ZZhikai Xue
Last edited Sep 16, 2025
Created on Sep 16, 2025
A scatterplot displays the relationship between a car buyer’s annual income and the vehicle’s purchase price, with each point colored by the car company using d3.scaleOrdinal and schemeCategory10. The React app loads car_data.csv via d3.csv and parses the numeric fields. A d3.scaleLinear maps income to the x-axis and price to the y-axis, and circles are rendered through a selection.join() with an opacity of 0.5.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.