Skip to main content
100%

Cars Scatter Plot with D3.js

✓ Published2🌍 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.

MIT Licensed

Similar vizzes