Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot with D3.js

Public visualization

Viewing a saved revision (read-only)

5c993b6ca81540889f3b83dc1aa810cd

Cars Scatter Plot with D3.js

0 stars0🌍 Public
HHwl98
Last edited Apr 20, 2020
Created on Apr 20, 2020

This example visualizes the relationship between horsepower and weight for a dataset of cars, with each vehicle represented by a semi-transparent red circle. The code uses D3.js v5's `csv` method to load data from a remote file, `scaleLinear` to map data values to pixel coordinates, and `axisBottom` and `axisLeft` to render axes with grid lines. The scatter plot is drawn as an SVG, and the chart includes labeled axes and a title, with margins and padding handled manually.

AI-generated description

A bare minimum HTML page.

See also React Starter.