Cars Scatter Plot
✓ Published2🌍 Public
A scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset, with each red semi-transparent circle representing a vehicle. The visualization uses D3 v7's `scaleLinear`, `axisBottom`, and `axisLeft` to construct axes with gridlines, while `csv` loads the remote data and converts values to numbers. The SVG rendering includes a title, rotated y-axis label, and axis padding, demonstrating local ES6 module imports alongside D3's UNPKG distribution.
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