Fork of Basic Scatter Plot with React & D3 Emissions
✓ Published0🌍 Public
This example uses a React app to render a basic scatter plot of CO2 emissions over time. The chart displays data points for various countries and regions from 1960 onward, sourced from a CSV file. The visualization is created using D3.js version 7, with the `select`, `csv`, `scaleLinear`, and `extent` APIs. A React `useEffect` hook loads the data and calls a custom `viz` function to render circles, mapping the year to the x-axis and emission value to the y-axis.
AI-generated descriptionThis is the link to the original data: https://www.kaggle.com/datasets/ulrikthygepedersen/co2-emissions-by-country
MIT Licensed