Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars

Public visualization

Cars

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed