🌍 Public
Viewing a saved revision (read-only)
b33f0e67304d471ea8a96bf450a607b9
Question3
This scatter plot visualizes the relationship between horsepower and miles per gallon for a small set of car models, encoded as colored circles. Each point’s position maps horsepower on the x-axis and MPG on the y-axis, with a categorical color scale distinguishing individual vehicles. The visualization is built with D3 v6, using `d3.csv` to load data from `car1.csv`, `d3.scaleLinear` for axes, and `d3.axisBottom`/`d3.axisLeft` to render ticks. The SVG output includes labeled axes for horsepower and MPG, with a fixed 800×600 canvas.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.