Skip to main content
100%

Cars

✓ Published1🌍 Public
Ss-janibekova
Last edited Nov 2, 2019
Created on Nov 2, 2019
Forked from Making a bar chart

This scatterplot displays the relationship between horsepower and weight for a dataset of cars, with each point representing an individual vehicle. The visualization uses D3’s `scaleLinear` and `extent` functions to map the data to pixel coordinates, with axes generated using `axisBottom` and `axisLeft`. Circles are appended to an SVG element with a semi-transparent steelblue fill, while axis labels and a title are added as text elements. The data is loaded from a CSV file via D3’s `csv` method and rendered with a margin-based layout.

AI-generated description
MIT Licensed

Similar vizzes