Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

25f9d493291b4c4590bc58e1e352141c

Cars Scatter Plot

0 stars0🌍 Public
Ggaowxx@qq.com
Last edited Dec 29, 2024
Created on Dec 29, 2024
Forked from Scatter Plot

This scatter plot shows the relationship between vehicle weight and horsepower for 25 car models, with each point representing a car from the dataset. The visualization uses D3 v5 to render SVG circles, with weight on the x-axis and horsepower on the y-axis. The code employs d3.scaleLinear, d3.extent, and d3.axisBottom/axisLeft to create scales and axes, while d3.format customizes the tick labels to abbreviate large numbers. The chart includes grid lines, axis labels, and a title, with data loaded from a CSV file via d3.csv.

AI-generated description