Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
XXin Li
Last edited Mar 27, 2021
Created on Mar 22, 2021

This example visualizes the relationship between horsepower and weight for cars, with each car represented as a semi-transparent red circle. The scatter plot uses d3.scaleLinear for both axes, with nice-ticked scales and gridlines drawn via tickSize. Data comes from a CSV file of auto-mpg records, parsed with d3.csv and rendered as SVG. The chart includes labeled axes for "Horsepower" and "Weight," and a title, using d3.axisLeft and d3.axisBottom for tick generation.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes