Skip to content

This is a project in HTML and D3 that shows the visual demonstration of the Air Quality Index of four major cities of Pakistan, namely Karachi, Lahore, Islamabad and Peshawar for the year 2019-2020.

Notifications You must be signed in to change notification settings

vaneezam/Information-Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visualizing the Air Quality of 4 major cities of Pakistan

Air quality is a major concern for people in Pakistan and around the globe. In many industrial and urban areas air pollution is causing damage to humans, plants, animals and ozone layer etc. due to release of harmful gases by various resources. In this project, we visualize the data of air quality of four major cities of Pakistan which include Karachi, Lahore, Islamabad, and Peshawar, the air pollutant for which is, Particulate Matter (PM 2.5). The dataset for the study is sourced from an online repository, collected in the time span ranging from May 2019 to April 2020. Three visualizations namely, Bar chart, Donut chart and Line chart are generated. These interactive visualizations are developed using D3.js and provide essential insights of data according to Year, Month, Day or the severity of air pollution. As per the designed visualizations, there has been a significant increase in air pollution during the end of 2019, whereas during the start of 2020, the air pollution started to decrease.
The data set for the project is sourced from :https://opendata.com.pk/dataset/air-quality-index-may-2019-april-2020/resource/decb72cb-1d47-4c2b-8414-33fb01f763d5

Project Architecture

Idiom Marks Channels
Line Chart Point Color hue, horizontal position, vertical position
Bar Chart Line Color hue, horizontal position, length
Donut Chart Area Color hue, angles

Libraries\Code

HTML, CSS, JavaScript libraries D3 and JQuery
Text editor: Visual Code

Code Deployment

Step 1: Download Node js from the following link: https://nodejs.org/en/download/
Step 2: Run the following command on Command Prompt: npm install
Step 3: Download D3 framework from : https://d3js.org/
Step 4: Extract the downloaded d3 file
Steo 5: Save the code files and the extracted D3 file into the same folder
Step 6: type the command: 'cmd', in the directory of the folder in Step 5 (as shown in images below)

directory of the folder

type cmd
Step 7: Run the command : npm install in the opeaned CLI, once all the packages are installed run the command: 'http-server -o'
A list of avaliable visualizations would appear and the desired may be choosed.

Project Screenshots

Screenshot (212) image image

Group Members

Vaneeza Mehmood
Noor us Sabah
Maryam Javed
Manahil Haseeb
Syeda Rabiya Arshad

About

This is a project in HTML and D3 that shows the visual demonstration of the Air Quality Index of four major cities of Pakistan, namely Karachi, Lahore, Islamabad and Peshawar for the year 2019-2020.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages