-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfire_ca_2018.html
246 lines (240 loc) · 9.54 KB
/
fire_ca_2018.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.introduction {margin-left: 100px; margin-right: 100px;}
.foot {font-size:50%; font-family: Verdana, sans-serif; margin-bottom: 0px; margin-top: 0px}
.chart_target {width: 100%; }
.chart_foot {margin-left: 100px; width: 100%}
table, td, th {border-collapse: collapse; border: 1px solid blue}
td, th {padding: 10px}
th { background-color: #4488FF;}
.sum_table {border-collapse: collapse; border: 10px solid blue}
</style>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawCharts);
function drawCharts() {
var data = new google.visualization.DataTable();
data.addColumn("date", "Season Start Date")
data.addColumn("number", "Acres Burned")
var options = {
"title": "Cal Fire (only) Fire Data",
"hAxis": {
"title": "Date Recorded"
},
"vAxis": {
"title": "Cumulative Acres Burned"
}
}
data.addRows([
]);
var chart = new google.visualization.ColumnChart(document.getElementById("acres_b_chart"))
chart.draw(data, options);
var data = new google.visualization.DataTable();
data.addColumn("date", "Season Start Date")
data.addColumn("number", "Acres Burned")
var options = {
"title": "Cal Fire (only) Data sourced from a different Cal Fire page.",
"hAxis": {
"title": "Date Recorded"
},
"vAxis": {
"title": "Cumulative Acres Burned"
}
}
data.addRows([
]);
var chart = new google.visualization.ColumnChart(document.getElementById("acres_alt_chart"))
chart.draw(data, options);
var data = new google.visualization.DataTable();
data.addColumn("date", "Season Start Date")
data.addColumn("number", "Acres Burned")
var options = {
"title": "Federal Fire Data for California only",
"hAxis": {
"title": "Year"
},
"vAxis": {
"title": "Total Acres Burned"
}
}
data.addRows([
[new Date(2018, 0, 1), 0],
[new Date(2018, 4, 29), 459300],
[new Date(2018, 6, 6), 459300],
[new Date(2018, 6, 7), 459300],
[new Date(2018, 7, 8), 459300],
[new Date(2018, 7, 9), 459300],
[new Date(2018, 11, 4), 1252890],
[new Date(2018, 11, 7), 1252901],
]);
var chart = new google.visualization.ColumnChart(document.getElementById("us_chart"))
chart.draw(data, options);
var data = new google.visualization.DataTable();
data.addColumn("date", "Season Start Date")
data.addColumn("number", "Acres Burned")
var options = {
"title": "Federal Fire Data for the Whole US",
"hAxis": {
"title": "Year"
},
"vAxis": {
"title": "Total Acres Burned"
}
}
data.addRows([
[new Date(2018, 0, 1), 0],
[new Date(2018, 4, 29), 1211909],
[new Date(2018, 6, 6), 1211909],
[new Date(2018, 6, 7), 1211909],
[new Date(2018, 7, 8), 1211909],
[new Date(2018, 7, 9), 1211909],
[new Date(2018, 11, 4), 2263251],
[new Date(2018, 11, 7), 2262947],
]);
var chart = new google.visualization.ColumnChart(document.getElementById("us_chart_2"))
chart.draw(data, options);
var data = new google.visualization.DataTable();
data.addColumn("date", "Season Start Date")
data.addColumn("number", "Acres Burned")
data.addColumn("number", "Fed Acres Burned")
data.addColumn("number", "Local Acres Burned")
var options = {
"title": "California Historical Fire Data 1987-2019",
"hAxis": {
"title": "Year"
},
"vAxis": {
"title": "Total Acres Burned"
},
"isStacked": "true"
}
data.addRows([
[new Date(1987, 11, 31), 87000, 744000, 42000],
[new Date(1988, 11, 31), 191000, 96000, 58000],
[new Date(1989, 11, 31), 73600, 87800, 12000],
[new Date(1990, 11, 31), 212100, 128100, 25000],
[new Date(1991, 11, 31), 23100, 18800, 2300],
[new Date(1992, 11, 31), 191490, 86340, 4915],
[new Date(1993, 11, 31), 122606, 67646, 119527],
[new Date(1994, 11, 31), 140792, 359227, 26200],
[new Date(1995, 11, 31), 121198, 78414, 10203],
[new Date(1996, 11, 31), 232624, 488010, 31738],
[new Date(1997, 11, 31), 57788, 198431, 27666],
[new Date(1998, 11, 31), 92456, 90246, 32710],
[new Date(1999, 11, 31), 285272, 865621, 21957],
[new Date(2000, 11, 31), 72718, 218578, 3730],
[new Date(2001, 11, 31), 90985, 275152, 11203],
[new Date(2002, 11, 31), 112810, 366842, 58564],
[new Date(2003, 11, 31), 404328, 399635, 161807],
[new Date(2004, 11, 31), 168134, 110082, 32808],
[new Date(2005, 11, 31), 74004, 139399, 65811],
[new Date(2006, 11, 31), 222896, 603378, 37071],
[new Date(2007, 11, 31), 434667, 990730, 95565],
[new Date(2008, 11, 31), 380310, 1153973, 59407],
[new Date(2009, 11, 31), 75960, 339908, 36101],
[new Date(2010, 11, 31), 25438, 98871, 10153],
[new Date(2011, 11, 31), 51889, 73124, 103586],
[new Date(2012, 11, 31), 128956, 687013, 13255],
[new Date(2013, 11, 31), 114473, 450126, 37036],
[new Date(2014, 11, 31), 163067, 451810, 10663],
[new Date(2015, 11, 31), 291282, 577115, 6137],
[new Date(2016, 11, 31), 244556, 412990, 12078],
[new Date(2017, 11, 31), 467497, 746701, 385442],
[new Date(2018, 11, 31), 1063414, 793548, 118124],
[new Date(2019, 11, 31), 137134, 124170, 0],
[new Date(2020, 11, 31), 1443152, 2814711, 0],
]);
var chart = new google.visualization.ColumnChart(document.getElementById("hist_b_chart"))
chart.draw(data, options);
}
</script>
</head>
<body>
<span style="float:right; margin-right:100;">
<select onchange="window.location=this.options[this.selectedIndex].value" name="states" id="states"><option value="fire_ak_2018.html">Alaska</option>
<option value="fire_al_2018.html">Alabama</option>
<option value="fire_ar_2018.html">Arkansas</option>
<option value="fire_az_2018.html">Arizona</option>
<option selected="selected" value="fire_ca_2018.html">California</option>
<option value="fire_co_2018.html">Colorado</option>
<option value="fire_ct_2018.html">Connecticut</option>
<option value="fire_de_2018.html">Delaware</option>
<option value="fire_fl_2018.html">Florida</option>
<option value="fire_ga_2018.html">Georgia</option>
<option value="fire_hi_2018.html">Hawaii</option>
<option value="fire_ia_2018.html">Iowa</option>
<option value="fire_id_2018.html">Idaho</option>
<option value="fire_il_2018.html">Illinois</option>
<option value="fire_in_2018.html">Indiana</option>
<option value="fire_ks_2018.html">Kansas</option>
<option value="fire_ky_2018.html">Kentucky</option>
<option value="fire_la_2018.html">Louisiana</option>
<option value="fire_ma_2018.html">Massachusetts</option>
<option value="fire_md_2018.html">Maryland</option>
<option value="fire_me_2018.html">Maine</option>
<option value="fire_mi_2018.html">Michigan</option>
<option value="fire_mn_2018.html">Minnesota</option>
<option value="fire_mo_2018.html">Missouri</option>
<option value="fire_ms_2018.html">Mississippi</option>
<option value="fire_mt_2018.html">Montana</option>
<option value="fire_nc_2018.html">North Carolina</option>
<option value="fire_nd_2018.html">North Dakota</option>
<option value="fire_ne_2018.html">Nebraska</option>
<option value="fire_nh_2018.html">New Hampshire</option>
<option value="fire_nj_2018.html">New Jersey</option>
<option value="fire_nm_2018.html">New Mexico</option>
<option value="fire_nv_2018.html">Nevada</option>
<option value="fire_ny_2018.html">New York</option>
<option value="fire_oh_2018.html">Ohio</option>
<option value="fire_ok_2018.html">Oklahoma</option>
<option value="fire_or_2018.html">Oregon</option>
<option value="fire_pa_2018.html">Pennsylvania</option>
<option value="fire_ri_2018.html">Rhode Island</option>
<option value="fire_sc_2018.html">South Carolina</option>
<option value="fire_sd_2018.html">South Dakota</option>
<option value="fire_tn_2018.html">Tennessee</option>
<option value="fire_tx_2018.html">Texas</option>
<option value="fire_ut_2018.html">Utah</option>
<option value="fire_va_2018.html">Virginia</option>
<option value="fire_vt_2018.html">Vermont</option>
<option value="fire_wa_2018.html">Washington</option>
<option value="fire_wi_2018.html">Wisconsin</option>
<option value="fire_wv_2018.html">West Virginia</option>
<option value="fire_wy_2018.html">Wyoming</option>
</select>
<select onchange="window.location=this.options[this.selectedIndex].value;" name="year" id="year">
<option value="fire_ca_2021.html">2021</option>
<option value="fire_ca_2020.html">2020</option>
<option value="fire_ca_2019.html">2019</option>
</select></span>
<h1>California Fire Data</h1>
<p class="introduction">This site attempts to visualize California fire data.</p>
<p class="introduction">Fires in California may be fought by Federal agencies, State agencies,
or local agencies, and the reporting is different for all, so data may be incomplete or inaccurate.</p>
<div class="chart_target" id="acres_b_chart"></div>
<div class="chart_foot">
Source: https://www.fire.ca.gov/umbraco/Api/IncidentApi/GetIncidents
</div>
<br>
<div class="chart_target" id="acres_alt_chart"></div>
<div class="chart_foot">
Source: https://www.fire.ca.gov/incidents/
</div>
<br>
<div class="chart_target" id="us_chart"></div>
<div class="chart_target" id="us_chart_2"></div>
<div class="chart_target" id="hist_b_chart"></div>
<div class="chart_foot">
From the 2019 Redbook: <b>Due to the changes in data collection, methods, and systems over the years, information may not always be comparable and data may be of differing accuracy or completeness.</b>
</div>
<br>
<hr>
<p class="foot">Source code: <a href="https://github.com/cocode/firedata">https://github.com/cocode/firedata</a></p>
<p class="foot">Data source: <a href="https://www.fire.ca.gov/incidents">https://www.fire.ca.gov/incidents</a></p>
<p class="foot">Accuracy not guaranteed</p>
</body>
</html>