Skip to main content
šŸŒ Public

Share visualization

Send this visualization to others.

cars scatter plot

Public visualization

Viewing a saved revision (read-only)

e8f151ec304f4f1c8cdee4b36d671b27

cars scatter plot

0 stars2šŸŒ Public
Jjingwg3@163.com
Last edited Sep 20, 2022
Created on Sep 20, 2022
Forked from scatter plot

This scatter plot shows the relationship between horsepower and weight for a dataset of cars, with each point representing a vehicle. The visualization uses D3.js (v5) to load CSV data and render an SVG chart with linear scales for both axes. The code employs `scaleLinear`, `axisBottom`, `axisLeft`, and `extent` functions to construct the plot, with circles colored red and semi-transparent. Axis labels, a title, and grid lines are included via D3 axis methods and appended text elements.

AI-generated description