This project presents a line graph visualization comparing CO2 Emissions for China and US. The visualization is created using the D3.js library.
To get started with the project, follow these steps:
- Download or clone the repository to your local machine.
- Open the
index.html
file in your preferred web browser.
The dataset used for this project can be found here. It contains data values for various countries in the years 1990 and 2017. The columns in the dataset are as follows:
- Country: The name of the country.
- Years(1990/2005/2017): The data value for the years.
The index.html
file contains the code for the visualization. Open it in your web browser to view the line graph.
You can customize the visualization by modifying the code in index.html
. Some possible customizations include:
- Changing the countries to compare: Update the
data
variable filtering to include the countries you wish to compare. - Updating the color scheme: Modify the
color
variable to use different colors for the lines. - Adding interactivity: Enhance the visualization by adding tooltips, zoom functionality, or other interactive features.
- Dataset source: https://gist.githubusercontent.com/stainlu/949e6e5588c8a7c6947fa99c896a2f74/raw/1a509b31a9737b66b91ce20d45b0ae66ecbc2395/data.csv
- D3.js library: https://d3js.org/
For more information on D3.js and data visualization techniques, refer to the official D3.js documentation and various online resources and tutorials.