Scatter Plot
This scatter plot visualizes the relationship between horsepower and weight for various car models, with each point representing a vehicle. The chart uses D3’s `scaleLinear` for both axes and renders the data as semi-transparent circles, with gridlines from `axisBottom` and `axisLeft`. The data is loaded from a CSV file via `csv()`, and numeric fields are parsed before plotting. Axes are customized with tick labels and rotated text, while the title “CARS yo” appears above the plot.
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.