Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 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
MIT Licensed

Similar vizzes