🌍 Public
Viewing a saved revision (read-only)
48f0ff9f29c14a1ca472d9437779ca7e
ice_7_task_1
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 description