Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task3

Public visualization

Activity6_task3

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

This scatter plot visualizes the relationship between horsepower and fuel efficiency (MPG) for 49 car models, with each point colored by the car's region of origin—American, European, or Japanese. The visualization uses D3.js v7 to load data from a CSV file and render SVG circles, with an interactive tooltip that appears on hover to display detailed specifications. The chart employs d3.scaleLinear for both axes, d3.scaleOrdinal for coloring, and d3.axisBottom and d3.axisLeft for the labeled axes. Hovering triggers animated transitions that enlarge the selected point and show a formatted HTML tooltip.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed