-
Notifications
You must be signed in to change notification settings - Fork 1
/
reference-tables.html
187 lines (169 loc) · 4.96 KB
/
reference-tables.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
---
layout: narrow
title: Solar projects by county
---
<h1>Reference Tables</h1>
<ul>
<li><a href="#largest">Top 10 Largest Solar Projects</a></li>
<li><a href="#largest-planned">Top 10 Largest Planned Solar Projects</a></li>
<li><a href="#counties">Counties</a></li>
<li><a href="#places">Places</a></li>
<li><a href="#il-house">IL State House Districts</a></li>
<li><a href="#il-senate">IL State Senate Districts</a></li>
</ul>
<h2 id="largest" class="mt-4">Top 10 Largest Solar Projects</h2>
<div id="table-largest-energized"></div>
<h2 id="largest-planned" class="mt-4">Top 10 Largest Planned Solar Projects</h2>
<div id="table-largest-planned"></div>
<p>Note, all values are in kilowatts (kW). Columns with a <code>PL_</code> prefix are planned and not yet energized projects.</p>
<h2 id="counties" class="mt-4">Counties</h2>
<div id="table-counties"></div>
<h2 id="places" class="mt-4">Places</h2>
<div id="table-places"></div>
<h2 id="il-house" class="mt-4">IL State House Districts</h2>
<div id="table-il-house"></div>
<h2 id="il-senate" class="mt-4">IL State Senate Districts</h2>
<div id="table-il-senate"></div>
<script src="js/jquery.csv.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
<script src="js/csv_to_html_table.js"></script>
<script>
function format_number(val) {
const parsed = parseInt(val);
if (isNaN(parsed)) { return 0 }
return parseInt(val).toLocaleString("en-US")
}
CsvToHtmlTable.init({
csv_path: "/data/final/top-10-projects.csv",
element: "table-largest-energized",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[3, 'desc']]
},
custom_formatting: [
[3, format_number],
]
});
CsvToHtmlTable.init({
csv_path: "/data/final/top-10-projects_planned.csv",
element: "table-largest-planned",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[3, 'desc']]
},
custom_formatting: [
[3, format_number],
]
});
CsvToHtmlTable.init({
csv_path: "/data/final/solar-projects-by-county-formatted.csv",
element: "table-counties",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[1, 'desc']]
},
custom_formatting: [
[1, format_number],
[2, format_number],
[3, format_number],
[4, format_number],
[5, format_number],
[6, format_number],
[7, format_number],
[8, format_number],
[9, format_number],
[10, format_number],
]
});
CsvToHtmlTable.init({
csv_path: "/data/final/solar-projects-by-place-formatted.csv",
element: "table-places",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[1, 'desc']]
},
custom_formatting: [
[1, format_number],
[2, format_number],
[3, format_number],
[4, format_number],
[5, format_number],
[6, format_number],
[7, format_number],
[8, format_number],
[9, format_number],
[10, format_number],
]
});
CsvToHtmlTable.init({
csv_path: "/data/final/solar-projects-by-il-house-formatted.csv",
element: "table-il-house",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[3, 'desc']]
},
custom_formatting: [
[3, format_number],
[4, format_number],
[5, format_number],
[6, format_number],
[7, format_number],
[6, format_number],
[7, format_number],
[8, format_number],
[9, format_number],
[10, format_number],
]
});
CsvToHtmlTable.init({
csv_path: "/data/final/solar-projects-by-il-senate-formatted.csv",
element: "table-il-senate",
allow_download: true,
csv_options: {
separator: ",",
delimiter: '"'
},
datatables_options: {
paging: false,
order: [[3, 'desc']]
},
custom_formatting: [
[3, format_number],
[4, format_number],
[5, format_number],
[6, format_number],
[7, format_number],
[6, format_number],
[7, format_number],
[8, format_number],
[9, format_number],
[10, format_number],
]
});
</script>