Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
Ssravaniboggaram
Last edited May 27, 2021
Created on May 25, 2021
Forked from Scatter Plot

This example uses a scatter plot to show the relationship between horsepower and weight for cars from the auto-mpg dataset. The code imports specific D3 v6 modules, including `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `extent`. It renders SVG circles with a fixed radius of 10, using semi-transparent steelblue fill, and adds labeled axes with tick marks and gridlines via `tickSize`. The chart includes custom axis tick formatting using `format` and a manually positioned title.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes