Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Cars Scatter Plot

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed