Activity6_task3
✓ Published0🌍 Public
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 descriptionMIT Licensed