Skip to main content
100%

Activity_6 Q_3

✓ Published0🌍 Public
Bbhavya.kanyadara@gmail.com
Last edited Apr 3, 2025
Created on Apr 3, 2025
Forked from Hello VizHub

This scatter plot visualizes the relationship between city MPG and highway MPG across vehicle classes, with each point representing a car model and colored by its class. The chart uses D3 v6’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, and `axisBottom` to map data coordinates and render the axes. Vehicle class determines the color through the `schemeCategory10` palette, while tooltips display the make, model, year, and class. The data is loaded via `d3.csv` from a GitHub repository, and the visualization is rendered as an SVG.

AI-generated description
MIT Licensed

Similar vizzes