Skip to main content
100%

Activity6_Question3

✓ Published0🌍 Public
Nnikhilthoutu24@gmail.com
Last edited Apr 5, 2025
Created on Apr 4, 2025
Forked from Activity6_Task3.2

This scatter plot displays the relationship between horsepower and miles per gallon for cars, with each point’s shape and color encoding the car’s type. The visualization uses d3.scaleLinear for the axes, d3.scaleOrdinal with symbolsFill and schemeSet1 to map categorical values to distinct shapes and colors, and d3.axisLeft/axisBottom for axes. Data is loaded from a remote CSV and parsed with d3.csvParse. A custom legend shows the shape-to-category mapping, with d3.symbol generating the icon paths.

AI-generated description
MIT Licensed

Similar vizzes