Varun_6_Question3
✓ Published0🌍 Public
This scatter plot visualizes a car dataset, mapping horsepower on the x-axis against highway MPG on the y-axis, with points colored by car make using a legend. Built with D3 v6, it loads CSV data via `d3.csv`, scales axes with `scaleLinear` and colors with `scaleOrdinal`, and renders circles as SVG elements. The chart includes labeled axes and a color legend, demonstrating data loading, scaling, and SVG rendering within a full-screen viewport.
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.
MIT Licensed