🌍 Public
Viewing a saved revision (read-only)
4dc43d2bcc93408b8fd5b958f5bf39f6
harsha act6 que3
This scatter plot visualizes a car dataset, plotting horsepower on the x-axis against highway MPG on the y-axis. Each circle represents a car, with its color indicating the car's make, as shown in the legend on the right side of the SVG graphic. Built with D3 v6, the code uses `d3.csv` to load the data, `d3.scaleLinear` and `d3.scaleOrdinal` for scaling, and `d3.axisBottom` and `d3.axisLeft` to render the axes. The data originates from a raw CSV file hosted on GitHub.
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.