Skip to main content
100%

Cars scatter

✓ Published0🌍 Public
MMarrnj2
Last edited May 19, 2020
Created on May 18, 2020
Forked from Customizing Axes

This scatterplot visualizes the relationship between vehicle weight and acceleration for a dataset of cars, rendering each car as a semi-transparent circle using SVG. The x-axis maps weight, the y-axis maps acceleration, with both axes scaled linearly and “niced” via D3’s `scaleLinear` and `extent`. The code uses D3 v5’s `csv`, `select`, `axisBottom`, and `axisLeft` to load data, append circles, and draw labeled ticks. Data comes from the auto-mpg CSV dataset, with axes customized for readability.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes