Skip to main content
100%

Activity6_Question 3

✓ Published0🌍 Public
Hharinihari6791@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This scatter plot visualizes the relationship between horsepower and miles per gallon for cars, with points colored by the car's origin (USA, Japan, or Europe) and a categorical color legend. The visualization is built using D3 v6, employing a custom scatter plot module with `scaleLinear` functions for both axes and an ordinal color scale from `d3.schemeCategory10`. The chart dimensions are fixed at 1000 by 600 pixels, rendering as SVG, with data loaded from a CSV file containing 80 car records. A color legend component displays the origin categories with corresponding colored circles.

AI-generated description
MIT Licensed

Similar vizzes