Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

8c25a6ecdaac4afaada3829e22d4a7d2

Cars Scatter Plot

0 stars1🌍 Public
Sscarlet shao
Last edited Jun 3, 2021
Created on Jun 3, 2021
Forked from Scatter Plot

This example shows the relationship between horsepower and weight for a collection of cars, with each vehicle represented as a semi-transparent circle. The scatter plot uses a linear scale for both axes, with tick marks extending across the plot area to create a grid. The D3 library handles data loading from a CSV file, and the `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` functions position the points and axes. The visualization is rendered as SVG, with axes labels and a title formatted using custom CSS classes.

AI-generated description