Skip to main content
100%

Fork of Cars Scatter Plot

✓ Published0🌍 Public
Xxyang3672
Last edited Mar 11, 2021
Created on Mar 11, 2021
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between a country's happiness Score and its perceived corruption level, using data from the World Happiness Report. Each red circle represents a country, positioned by its Score on the x-axis and corruption value on the y-axis. The code uses D3 v5’s `scaleLinear`, `axisLeft`, and `axisBottom` to construct the chart, with SVG rendering. It loads the `happiness.csv` file via `csv`, maps numeric fields, and applies margins, axis labels, and a title within the SVG canvas.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.

MIT Licensed

Similar vizzes