Cars Scatter Plot
✓ Published0🌍 Public
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 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.
MIT Licensed