ice_7_task_1
✓ Published2🌍 Public
This scatter plot visualizes the relationship between horsepower and miles per gallon (MPG) across vehicles in the mtcars dataset, with points colored by cylinder count. The reusable `scatterPlot` function, built with d3.v7, configures linear scales, ordinal color encoding, axes, and a legend. It uses `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.schemeTableau10`, and `d3.axisBottom`/`d3.axisLeft` to render the chart, with data loaded via `d3.csv` and `d3.autoType`.
AI-generated descriptionMIT Licensed