Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

be69570c53e946a2846e13cc5203ec82

Cars Scatter Plot

0 stars0🌍 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.