🌍 Public
Viewing a saved revision (read-only)
70a712f652894d94b1c51b3df39dcef7
Q3 - Jaynica Nunna
This scatter plot visualizes a car dataset, showing the relationship between horsepower on the x-axis and highway MPG on the y-axis, with each circle colored by car make. The visualization demonstrates D3 v6’s modular API, using `csv` to load data from a GitHub raw URL, `scaleLinear` and `scaleOrdinal` with `schemeTableau10` for scales, and `axisLeft`/`axisBottom` for axes. Circles are rendered as SVG elements via `selectAll().data().join()`, with a color legend positioned on the right. The plot uses a full-window SVG canvas with margins adjusted for readability.
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.