Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6 Q_3

Public visualization

Viewing a saved revision (read-only)

da74fcc904714504a2ac179b43f3e3ab

Activity_6 Q_3

0 stars0🌍 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