-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfire_mi_2019.html
140 lines (134 loc) · 5.69 KB
/
fire_mi_2019.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
<!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": "Federal Fire Data for Michigan for 2019",
"hAxis": {
"title": "Year"
},
"vAxis": {
"title": "Total Acres Burned"
}
}
data.addRows([
[new Date(2019, 0, 1), 0],
[new Date(2019, 3, 23), 0],
[new Date(2019, 5, 1), 0],
[new Date(2019, 7, 9), 0],
[new Date(2019, 11, 30), 0],
]);
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(2019, 0, 1), 0],
[new Date(2019, 3, 23), 14077],
[new Date(2019, 5, 1), 68403],
[new Date(2019, 7, 9), 68403],
[new Date(2019, 11, 30), 67456],
]);
var chart = new google.visualization.ColumnChart(document.getElementById("us_chart_2"))
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_2019.html">Alaska</option>
<option value="fire_al_2019.html">Alabama</option>
<option value="fire_ar_2019.html">Arkansas</option>
<option value="fire_az_2019.html">Arizona</option>
<option value="fire_ca_2019.html">California</option>
<option value="fire_co_2019.html">Colorado</option>
<option value="fire_ct_2019.html">Connecticut</option>
<option value="fire_de_2019.html">Delaware</option>
<option value="fire_fl_2019.html">Florida</option>
<option value="fire_ga_2019.html">Georgia</option>
<option value="fire_hi_2019.html">Hawaii</option>
<option value="fire_ia_2019.html">Iowa</option>
<option value="fire_id_2019.html">Idaho</option>
<option value="fire_il_2019.html">Illinois</option>
<option value="fire_in_2019.html">Indiana</option>
<option value="fire_ks_2019.html">Kansas</option>
<option value="fire_ky_2019.html">Kentucky</option>
<option value="fire_la_2019.html">Louisiana</option>
<option value="fire_ma_2019.html">Massachusetts</option>
<option value="fire_md_2019.html">Maryland</option>
<option value="fire_me_2019.html">Maine</option>
<option selected="selected" value="fire_mi_2019.html">Michigan</option>
<option value="fire_mn_2019.html">Minnesota</option>
<option value="fire_mo_2019.html">Missouri</option>
<option value="fire_ms_2019.html">Mississippi</option>
<option value="fire_mt_2019.html">Montana</option>
<option value="fire_nc_2019.html">North Carolina</option>
<option value="fire_nd_2019.html">North Dakota</option>
<option value="fire_ne_2019.html">Nebraska</option>
<option value="fire_nh_2019.html">New Hampshire</option>
<option value="fire_nj_2019.html">New Jersey</option>
<option value="fire_nm_2019.html">New Mexico</option>
<option value="fire_nv_2019.html">Nevada</option>
<option value="fire_ny_2019.html">New York</option>
<option value="fire_oh_2019.html">Ohio</option>
<option value="fire_ok_2019.html">Oklahoma</option>
<option value="fire_or_2019.html">Oregon</option>
<option value="fire_pa_2019.html">Pennsylvania</option>
<option value="fire_ri_2019.html">Rhode Island</option>
<option value="fire_sc_2019.html">South Carolina</option>
<option value="fire_sd_2019.html">South Dakota</option>
<option value="fire_tn_2019.html">Tennessee</option>
<option value="fire_tx_2019.html">Texas</option>
<option value="fire_ut_2019.html">Utah</option>
<option value="fire_va_2019.html">Virginia</option>
<option value="fire_vt_2019.html">Vermont</option>
<option value="fire_wa_2019.html">Washington</option>
<option value="fire_wi_2019.html">Wisconsin</option>
<option value="fire_wv_2019.html">West Virginia</option>
<option value="fire_wy_2019.html">Wyoming</option>
</select>
<select onchange="window.location=this.options[this.selectedIndex].value;" name="year" id="year">
<option value="fire_mi_2021.html">2021</option>
<option value="fire_mi_2020.html">2020</option>
<option selected="selected" value="fire_mi_2019.html">2019</option>
</select></span>
<h1>Michigan Fire Data</h1>
<p class="introduction">This site attempts to visualize Michigan fire data.</p>
<p class="introduction">Fires in Michigan 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="us_chart"></div>
<div class="chart_target" id="us_chart_2"></div>
<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>