Cars Scatter Plot
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed