Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

64b2123ea3dd4ff0ba011cea061b88ea

Cars Scatter Plot

0 stars0🌍 Public
JJMason88
Last edited Jun 4, 2019
Created on Jun 4, 2019
Forked from Customizing Axes

This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, loaded via D3’s `csv` function. It renders circles with red fill and opacity, using `scaleLinear` for both axes, with `axisBottom` and `axisLeft` for ticks and custom axis labels. The code formats tick labels with `format` and adds a title, demonstrating D3 v5’s SVG-based data binding and margin-driven chart layout.

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.