scatter plot with menu
This scatter plot displays the relationship between horsepower and weight for cars in the auto-mpg dataset, with each semi-transparent steelblue circle representing a vehicle. The visualization uses D3 v5’s scaleLinear, axisBottom, and axisLeft to construct the axes, while axis tick lines extend across the plot to create a grid. The data is loaded as CSV via d3.csv and parsed into numeric values before rendering as SVG circles. The chart includes rotated axis labels and a title, though the menu referenced in the title is not implemented in the shown code.
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.