Cars Scatterplot
This scatterplot displays the relationship between vehicle weight and horsepower for a dataset of cars. Each circle represents a car, with its position determined by these two measurements using D3’s `scaleLinear` and `extent` functions. The axes are customized with tick labels formatted via `format`, and the plot includes axis titles and a main title. Data is loaded from a CSV file using `csv`, and the visualization is rendered as SVG elements. The styling uses semi-transparent steelblue circles, while axis labels and ticks are sized and colored through CSS.
AI-generated descriptionThis 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.