Skip to content

Commit

Permalink
final updates for this project
Browse files Browse the repository at this point in the history
  • Loading branch information
LegallyNotBlonde committed Aug 28, 2024
1 parent 0ddabe8 commit 36bf6b8
Show file tree
Hide file tree
Showing 8 changed files with 287 additions and 198 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions MapVisualizations/static/style.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/* Container to hold the links */
.top-right-links {
position: absolute;
top: 10px;
right: 10px;
top: 10%;
right: 50px;
display: flex;
gap: 15px;
}

/* Basic link styling */
.top-right-links a {
color: #007BFF;
color: #8B0000;
text-decoration: none;
font-weight: bold;
font-size: 20px;
}

/* Link style on hover */
Expand Down
63 changes: 42 additions & 21 deletions MapVisualizations/summary_data.csv
Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
County,value
Alameda,552
Amador,4470
Butte,328
Glenn,317
Inyo,4136
Kern,3699
Los Angeles,5208
Madera,1499
Mariposa,19665
Merced,806
Modoc,5843
Monterey,687
Napa,570
Nevada,904
Placer,76788
Riverside,28098
San Diego,5033
San Luis Obispo,387
Shasta,304
Siskiyou,17379
Tehama,593
Butte,19609
Calaveras,3238
Colusa,560
Contra Costa,396625
El Dorado,1673
Fresno,415975
Humboldt,144698
Kern,11760
Kings,2060
Lassen,128629
Los Angeles,153785
Madera,900
Marin,4929
Mariposa,6922
Mendocino,1920
Merced,2980
Mono,50924
Monterey,180835
Napa,430704
Nevada,705
Orange,32846
Placer,670
Plumas,348505
Riverside,43173
Sacramento,6295
San Benito,2298
San Bernardino,67105
San Diego,21766
San Luis Obispo,13577
San Mateo,86509
Santa Barbara,2091
Santa Clara,5866
Shasta,56671
Sierra,47029
Siskiyou,252133
Solano,1837
Tehama,684
Trinity,1033061
Tulare,186604
Tuolumne,4914
Ventura,3292
Yuba,2411
32 changes: 16 additions & 16 deletions Outputs/yearly_stats.csv
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Year,total_fires,total_acres,median_yearly_duration,total_deaths,Tot_Damage
2008,154,1360379.0,8,11,123776318.0
2009,67,422400.0,7,3,3384952.0
2010,43,96745.0,4,0,3084232.0
2011,62,174361.0,4,0,6063346.0
2012,72,730733.0,5,0,28165425.0
2013,54,546298.0,6,1,29591022.0
2014,52,535318.0,9,2,19850727.0
2015,55,773415.0,8,7,3061793771.0
2016,69,542952.0,11,8,149217956.0
2017,125,1418515.0,9,47,12135267702.0
2018,77,1532601.0,8,99,2087175315.0
2019,61,267306.0,6,3,404886260.0
2020,113,4178768.0,9,33,4725058729.0
2021,65,2502181.0,11,0,514104837.0
2022,28,177266.0,6,4,313364612.0
Year,total_fires,total_acres,median_yearly_duration,mode_yearly_duration,total_deaths,Tot_Damage
2008,154,1360379.0,8,1,11,123776318.0
2009,67,422400.0,7,3,3,3384952.0
2010,43,96745.0,4,2,0,3084232.0
2011,62,174361.0,4,2,0,6063346.0
2012,72,730733.0,5,5,0,28165425.0
2013,54,546298.0,6,5,1,29591022.0
2014,52,535318.0,9,9,2,19850727.0
2015,55,773415.0,8,5,7,3061793771.0
2016,69,542952.0,11,7,8,149217956.0
2017,125,1418515.0,9,4,47,12135267702.0
2018,77,1532601.0,8,2,99,2087175315.0
2019,61,267306.0,6,2,3,404886260.0
2020,113,4178768.0,9,1,33,4725058729.0
2021,65,2502181.0,11,2,0,514104837.0
2022,28,177266.0,6,6,4,313364612.0
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,21 @@ ___

### Methodologies and Programming Languages Used
* Pandas libraries
* Python (including but not limited to '**pdfplumber**' and '**ast**' to process trees of the Python abstract syntax grammar)
* Python (including but not limited to '**Flask**', '**pdfplumber**' and '**ast**' to process trees of the Python abstract syntax grammar)
* SQL
* JavaScript
* To initiate the dynamic visualization using Flask, navigate to Fire-Analysis/masVisualizations folder, run python app.py, and open the [HTML page](http://127.0.0.1:5000/)

___

### Repo Structure
* **Files with codes** have **self-explanatory names** and are available in the [main body of the repo](https://github.com/LegallyNotBlonde/Fire-Analysis)
* **Files with codes to create interactive map and charts** and stoed [MapsVisualizations](https://github.com/LegallyNotBlonde/Fire-Analysis/tree/main/MapVisualizations)
* **[Resources folder](https://github.com/LegallyNotBlonde/Fire-Analysis/tree/main/Resources)** contains original, raw data sets
* **[Outputs](https://github.com/LegallyNotBlonde/Fire-Analysis/tree/main/Outputs)** includes transformed data and tables
* **[Charts](https://github.com/LegallyNotBlonde/Fire-Analysis/tree/main/Charts)** folder contains various visualization displays
* **Files with codes** have **self-explanatory names** and are available in the [main body of the repo](https://github.com/LegallyNotBlonde/Fire-Analysis)
* **[Presentation](https://docs.google.com/presentation/d/18218T6EQrjeQu0vUXJoN1WikxMXPLT6Y-v4c-PHHHL0/edit#slide=id.p)** with more information about the projects and all necessary charts.
* ### *[Link to the interactive visualization](http://127.0.0.1:5500/index.html)*

___

### Resourses
Expand Down
Loading

0 comments on commit 36bf6b8

Please sign in to comment.