Skip to main content
100%

Cars Scatter Plot with D3.js!

✓ Published1🌍 Public
LLidiamir
Last edited Mar 12, 2021
Created on Mar 12, 2021

This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, loaded via `d3.csv` from VizHub. Using D3 v6, the code employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data to an SVG canvas, with circles styled for transparency. Custom axis tick formatting via `d3.format` and rotated labels enhance readability, while margins and explicit width/height attributes position the chart. The rendering uses SVG elements appended dynamically through D3 selections.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes