Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task 3 Q1

Public visualization

Viewing a saved revision (read-only)

7cf54b7be593472095f66ee705e18c82

Activity6_Task 3 Q1

0 stars1🌍 Public
Bbhavanasruthikakarlapudi@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025
Forked from Activity6_Task3.1

This scatter plot visualizes the relationship between city and highway MPG for individual cars, with each point colored by vehicle class and tooltips identifying make, model, and year. The code loads CSV data from a GitHub repository, uses d3.scaleLinear for both axes, and d3.scaleOrdinal with schemeCategory10 for color encoding. SVG circles are rendered with d3 selection joins, while axisLeft and axisBottom generate the labeled axes. A legend maps class names to colors, and an HTML title supports the chart.

AI-generated description