🌍 Public
Viewing a saved revision (read-only)
310b21ef4de94aec88e89b64af2f0869
HW6 Fix
This scatterplot visualizes the relationship between engine Horsepower, Torque, and MPG, with vehicle Layout encoded by color. The code loads data from a CSV file using `d3.csv`, then renders an SVG with `d3.scaleLinear` for x and y positions and `d3.scaleOrdinal` for category colors. Summary statistics display mean and median horsepower, while axes are drawn with D3’s axis components. The visualization demonstrates basic marks and channels, using position, size, and color to encode quantitative and categorical attributes.
AI-generated description