summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-10-08 00:13:42 +0200
committerJules Laplace <julescarbon@gmail.com>2018-10-08 00:13:42 +0200
commit81adbc30b2dbf9a24917694e22042762a930e00d (patch)
tree6d4b03c818b2da9db9de5139ea7cffef687b530d /client
parent5496464966ff34c848538d726819ed91119da1f2 (diff)
group statistic aggregator
Diffstat (limited to 'client')
-rw-r--r--client/index.js69
1 files changed, 0 insertions, 69 deletions
diff --git a/client/index.js b/client/index.js
index af1886a..65b15d3 100644
--- a/client/index.js
+++ b/client/index.js
@@ -43,20 +43,6 @@ data.load().then(lists => {
datasets = lists.map(list => {
list.shift()
switch(list.name) {
- // case 'gun_violence':
- // return {
- // ...list,
- // lines: list.lines.map(line => {
- // // 0 incident_id
- // // 1 date
- // // 2 state
- // // 3 city_or_county
- // // 4 address
- // // 5 n_killed
- // // 6 n_injured
- // })
- // }
- // break
case 'gun_violence':
return gun_violence_melody(list)
case 'mass_shootings':
@@ -96,61 +82,6 @@ data.load().then(lists => {
requestAudioContext(ready)
})
-/*
- 479363,
- 2013-01-19,New Mexico,Albuquerque,2806 Long Lane,
- 5,0,
- http://www.gunviolencearchive.org/incident/479363,
- http://hinterlandgazette.com/2013/01/pastor-greg-griego-identified-victims-killed-nehemiah-griego-albuquerque-nm-shooting.html,
- False,1,
-
- gun_stolen,
- 0::Unknown||1::Unknown,
-
- gun_type,
- 0::22 LR||1::223 Rem [AR-15],
-
- incident_characteristics,
- "Shot - Dead (murder, accidental, suicide)
- ||Mass Shooting (4+ victims injured or killed excluding the subject/suspect/perpetrator, one location)
- ||Domestic Violence",
-
- latitude, location_description, longitude,
- 34.9791,,-106.716,
-
- n_guns_involved, notes,
- 2,,
-
- participant_age,
- 0::51||1::40||2::9||3::5||4::2||5::15,
-
- participant_age_group,
- 0::Adult 18+||1::Adult 18+||2::Child 0-11||3::Child 0-11||4::Child 0-11||5::Teen 12-17,
-
- participant_gender,
- 0::Male||1::Female||2::Male||3::Female||4::Female||5::Male,
-
- participant_name,
- 0::Greg Griego||1::Sara Griego||2::Zephania Griego||3::Jael Griego||4::Angelina Griego||5::Nehemiah Griego,
-
- participant_relationship,
- 5::Family,
-
- participant_status,
- "0::Killed||1::Killed||2::Killed||3::Killed||4::Killed||5::Unharmed, Arrested",
-
- participant_type,
- 0::Victim||1::Victim||2::Victim||3::Victim||4::Victim||5::Subject-Suspect,
-
- http://www.cbsnews.com/news/nehemiah-gringo-case-memorial-service-planned-for-family-allegedly-slain-by-new-mexico-teen/||
- http://www.thewire.com/national/2013/01/teenager-reportedly-used-ar-15-kill-five-new-mexico/61199/||
- http://bigstory.ap.org/article/officials-nm-teen-gunman-kills-5-inside-home||
- http://www.huffingtonpost.com/2013/01/21/nehemiah-griego-teen-shoots-parents-3-children_n_2519359.html||
- http://murderpedia.org/male.G/g/griego-nehemiah.htm||
- http://hinterlandgazette.com/2013/01/pastor-greg-griego-identified-victims-killed-nehemiah-griego-albuquerque-nm-shooting.html,
- 10,14
-*/
-
function gun_violence_melody(list){
let melody = []
let lookup = {}