Skip to main content
100%

Activity8Task3UN

✓ Published0🌍 Public
Uuzairnaeem15@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity-6

This D3.js scatter plot visualizes the relationship between a car's horsepower and its fuel efficiency (miles per gallon), with each circle colored by the vehicle's country of origin (USA, Japan, or other). The visualization uses `d3.csv` to load data from a GitHub-hosted `cars.csv` file, then employs `d3.scaleLinear` to map the numeric axes and `d3.axisLeft`/`d3.axisBottom` to render the labeled scales. Circles are drawn as SVG elements, with colors assigned via a switch statement on the origin field.

AI-generated description
MIT Licensed

Similar vizzes