Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Act 6, Task 3 6

Public visualization

Viewing a saved revision (read-only)

f74ec20ca25247cfa9463b489a11feca

Act 6, Task 3 6

0 stars0🌍 Public
AAnushaHyderaboeni@my.unt.edu
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This scatter plot shows the relationship between horsepower and fuel efficiency (miles per gallon) for ten car models, with each point colored by the car’s region of origin (USA, Japan, or Europe). Built with D3 v7, the code loads the `cars.csv` file, uses `d3.scaleLinear` for both axes, and applies `d3.scaleOrdinal` with `d3.schemeCategory10` for the categorical color encoding. SVG circles are positioned via x/y scales, and labeled axes are generated with `d3.axisBottom` and `d3.axisLeft`.

AI-generated description