Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice_7_task_1

Public visualization

Viewing a saved revision (read-only)

48f0ff9f29c14a1ca472d9437779ca7e

ice_7_task_1

0 stars2🌍 Public
Vvineelaviswanadham07@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from HTML Starter

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