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)

6bc7dca9f92f40e0b4fe92ea19556b2f

Cars Scatter Plot with D3.js

0 stars2🌍 Public
DDaniel Rivera
Last edited Apr 19, 2020
Created on Apr 19, 2020

This example visualizes the relationship between horsepower and weight for various car models using a scatter plot. Each circle represents a car, with its position determined by the horsepower and weight values from the auto-mpg dataset. The code uses D3.js v5, specifically leveraging `scaleLinear` for scaling, `axisLeft` and `axisBottom` for axes, and `append` to create the SVG circles. The axes include labels and grid lines, while the circles are semi-transparent red, and the plot is rendered within an SVG canvas.

AI-generated description

A bare minimum HTML page.

See also React Starter.