Skip to main content
100%

Cars Scatter Plot

✓ Published2🌍 Public
PPenguin-jpg
Last edited Sep 17, 2023
Created on Sep 17, 2023
Forked from Customizing Axes

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes