Skip to content

Instantly share code, notes, and snippets.

@bjorngi
Last active December 24, 2015 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjorngi/7e63dbeb74d181a1d325 to your computer and use it in GitHub Desktop.
Save bjorngi/7e63dbeb74d181a1d325 to your computer and use it in GitHub Desktop.
beerquest2015
{"description":"beerquest2015","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"data.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"graph.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"thumbnail":"http://i.imgur.com/DQS8b2R.png"}
{
"users": [
{
"id": 0,
"firstName": "Dennis",
"lastName": "Erikssen"
},
{
"id": 1,
"firstName": "Axel",
"lastName": "Hanslien"
},
{
"id": 2,
"firstName": "Bjørn Arne",
"lastName": "Jensen"
},
{
"id": 3,
"firstName": "Bjørn",
"lastName": "Gilstad"
},
{
"id": 4,
"firstName": "Svein Ove",
"lastName": "Undal"
}
],
"beers": [
{
"id": 0,
"name": "Nøisommelig Jul",
"manufacturer": "Nøisom Craft Beer"
},
{
"id": 1,
"name": "Fredrikstad Juleøl",
"manufacturer": "Hansa Borg Bryggerier"
},
{
"id": 2,
"manufacturer": "Lervig Aktiebryggeri",
"name": "Lervigs Jul"
},
{
"id": 3,
"manufacturer": "Ægir Bryggeri",
"name": "Ylir Julebrygg (2015)"
},
{
"id": 4,
"manufacturer": "Grans Bryggeri",
"name": "Lade Gaards Sterk Juleøl"
},
{
"id": 5,
"manufacturer": "Munkebo Mikrobryg",
"name": "Jólner"
},
{
"id": 6,
"manufacturer": "Indslev Bryggeri",
"name": "Jule Hvede"
},
{
"id": 7,
"manufacturer": "Nøgne Ø",
"name": "Rød Jul (2015)"
},
{
"id": 8,
"manufacturer": "HaandBryggeriet",
"name": "Nissemor"
},
{
"id": 9,
"manufacturer": "To Øl",
"name": "Sur Yule"
},
{
"id": 10,
"manufacturer": "Holtens",
"name": "Julebrygg"
},
{
"id": 11,
"manufacturer": "Brasserie d'Achouffe",
"name": "N'Ice Chouffe"
},
{
"id": 12,
"manufacturer": "HaandBryggeriet",
"name": "Nissemor"
},
{
"id": 13,
"manufacturer": "Tucher Bräu",
"name": "Tucher Christkindlesmarkt Bier"
},
{
"id": 14,
"manufacturer": "Brouwerij Alken-Maes",
"name": "Grimbergen Brassin de Noël"
},
{
"id": 15,
"manufacturer": "Brewdog",
"name": "Hoppy Christmas"
},
{
"id": 16,
"manufacturer": "Kinn Bryggeri",
"name": "Julefred 6.7%"
},
{
"id": 17,
"manufacturer": "Mission Brewery",
"name": "El Conquistador"
},
{
"id": 18,
"manufacturer": "Mikeller",
"name": "Ris a la M’ale"
},
{
"id": 19,
"manufacturer": "Brasserie St-Feuillien",
"name": "St-Feuillien Cuvée De Noël (2015)"
}
],
"tasting": [
{
"beer": 0,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 0
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 3,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 1,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 2,
"aftertaste": 1,
"balance": 3,
"other": 0
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 2,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 3
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 3,
"other": 2
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 3,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 3
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 0,
"aftertaste": 0,
"balance": 3,
"other": 2
},
"body": 2,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 4,
"user": 4,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 1
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 1,
"other": 1
},
"body": 2,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 5,
"user": 4,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 0,
"other": 3
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 3
},
"body": 3,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 6,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 1,
"balance": 3,
"other": 1
},
"body": 2,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 7,
"user": 4,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 2
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 8,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 2,
"aftertaste": 3,
"balance": 2,
"other": 3
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 9,
"user": 4,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 4
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 4
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 10,
"user": 4,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 0,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 1,
"balance": 2,
"other": 0
},
"body": 2,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 11,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 0,
"balance": 3,
"other": 0
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 12,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 0,
"balance": 3,
"other": 0
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 13,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 0
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 0
},
"body": 1,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 14,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 15,
"user": 4,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 3,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 4
},
"body": 4,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 16,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 2
},
"body": 2,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 17,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 1
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 3
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 18,
"user": 4,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 0,
"other": 4
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 2,
"balance": 0,
"other": 2
},
"body": 2,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 19,
"user": 4,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 0
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 0
},
"body": 3,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 0,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 0,
"aftertaste": 2,
"balance": 2,
"other": 1
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 1,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 0,
"aftertaste": 0,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 2,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 2
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 2,
"co2": 2,
"aftertaste": 3,
"balance": 2,
"other": 2
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 3,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 1
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 0,
"hops": 1,
"co2": 0,
"aftertaste": 0,
"balance": 0,
"other": 0
},
"body": 2,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 4,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 1,
"other": 0
},
"body": 2,
"drinkability": 0,
"comment": ""
}
},
{
"beer": 5,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 1,
"aftertaste": 2,
"balance": 3,
"other": 1
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 6,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 2
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 0,
"balance": 1,
"other": 0
},
"body": 3,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 7,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 1
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 3
},
"taste": {
"malt": 0,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 3
},
"body": 3,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 8,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 1,
"aftertaste": 1,
"balance": 1,
"other": 1
},
"body": 2,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 9,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 4
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 4,
"other": 3
},
"body": 5,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 10,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 3
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 2
},
"body": 3,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 11,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 1
},
"body": 2,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 12,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 3,
"other": 2
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 13,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 0
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 1,
"aftertaste": 1,
"balance": 1,
"other": 0
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 14,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 0,
"aftertaste": 1,
"balance": 2,
"other": 0
},
"body": 4,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 15,
"user": 3,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 4
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 3,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 16,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 1,
"aftertaste": 3,
"balance": 2,
"other": 1
},
"body": 2,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 17,
"user": 3,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 2,
"other": 2
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 18,
"user": 3,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 0
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 1,
"balance": 1,
"other": 2
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 19,
"user": 3,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 0
},
"looks": {
"color": 0,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 0,
"user": 2,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 0,
"balance": 2,
"other": 0
},
"body": 5,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 1,
"user": 2,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 0,
"other": 0
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 4,
"other": 2
},
"body": 5,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 2,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 1
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 0
},
"taste": {
"malt": 0,
"hops": 1,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 4
},
"body": 5,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 3,
"user": 2,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 1,
"other": 2
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 0,
"balance": 1,
"other": 2
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 4,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 0,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 1,
"other": 2
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 5,
"user": 2,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 4
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 2,
"other": 4
},
"body": 2,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 6,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 5,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 7,
"user": 2,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 0
},
"looks": {
"color": 0,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 0,
"hops": 3,
"co2": 2,
"aftertaste": 0,
"balance": 0,
"other": 0
},
"body": 5,
"drinkability": 1,
"comment": ""
}
},
{
"beer": 8,
"user": 2,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 4
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 1,
"balance": 1,
"other": 2
},
"body": 4,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 9,
"user": 2,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 0
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 3,
"balance": 3,
"other": 4
},
"body": 5,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 10,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 4
},
"body": 4,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 11,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 1,
"aftertaste": 1,
"balance": 3,
"other": 1
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 12,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 1
},
"looks": {
"color": 1,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 1,
"aftertaste": 3,
"balance": 4,
"other": 2
},
"body": 2,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 13,
"user": 2,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 4
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 3,
"balance": 3,
"other": 2
},
"body": 5,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 14,
"user": 2,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 2
},
"body": 5,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 15,
"user": 2,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 0
},
"looks": {
"color": 0,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 0,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 2,
"other": 1
},
"body": 5,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 16,
"user": 2,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 1
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 0,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 5,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 17,
"user": 2,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 1
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 0,
"hops": 3,
"co2": 0,
"aftertaste": 2,
"balance": 1,
"other": 1
},
"body": 5,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 0,
"user": 1,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 2,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 1,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 0
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 0,
"co2": 0,
"aftertaste": 0,
"balance": 0,
"other": 0
},
"body": 1,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 2,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 1,
"other": 1
},
"body": 2,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 3,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 1
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 4,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 0
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 2,
"aftertaste": 3,
"balance": 1,
"other": 1
},
"body": 2,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 5,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 2,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 5,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 6,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 1,
"aftertaste": 3,
"balance": 3,
"other": 1
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 7,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 1,
"aftertaste": 3,
"balance": 2,
"other": 1
},
"body": 4,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 8,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 2,
"co2": 1,
"aftertaste": 2,
"balance": 3,
"other": 1
},
"body": 4,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 9,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 2,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 2,
"other": 3
},
"body": 5,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 10,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 3,
"balance": 2,
"other": 0
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 12,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 2,
"comment": ""
}
},
{
"beer": 13,
"user": 1,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 3,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 1
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 14,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 5,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 15,
"user": 1,
"ratings": {
"bouquet": {
"malt": 0,
"hops": 3,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 0,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 3
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 16,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 4,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 17,
"user": 1,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 3
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 18,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 5,
"drinkability": 7,
"comment": ""
}
},
{
"beer": 19,
"user": 1,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 2,
"other": 2
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 5,
"drinkability": 10,
"comment": ""
}
},
{
"beer": 0,
"user": 0,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 2
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 1,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 1,
"aftertaste": 1,
"balance": 2,
"other": 2
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 2,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 1,
"other": 3
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 2,
"aftertaste": 1,
"balance": 3,
"other": 2
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 3,
"user": 0,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 3
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 1,
"aftertaste": 1,
"balance": 2,
"other": 1
},
"body": 2,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 4,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 4
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 3,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 5,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 3
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 0
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 4
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 6,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 2
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 1,
"balance": 1,
"other": 1
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 7,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 3
},
"looks": {
"color": 1,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 3
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 8,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 3
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 9,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 4
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 5,
"drinkability": 9,
"comment": ""
}
},
{
"beer": 10,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 1
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 2,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 2,
"drinkability": 3,
"comment": ""
}
},
{
"beer": 11,
"user": 0,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 3,
"drinkability": 5,
"comment": ""
}
},
{
"beer": 12,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 1,
"co2": 2,
"aftertaste": 1,
"balance": 3,
"other": 1
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 13,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 1,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 1,
"aftertaste": 2,
"balance": 1,
"other": 1
},
"body": 3,
"drinkability": 4,
"comment": ""
}
},
{
"beer": 14,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 0
},
"taste": {
"malt": 3,
"hops": 0,
"co2": 2,
"aftertaste": 2,
"balance": 2,
"other": 2
},
"body": 3,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 15,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 3,
"other": 5
},
"looks": {
"color": 1,
"clarity": 2,
"foam": 1
},
"taste": {
"malt": 2,
"hops": 3,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 16,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 2
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 1
},
"taste": {
"malt": 3,
"hops": 1,
"co2": 2,
"aftertaste": 2,
"balance": 3,
"other": 2
},
"body": 2,
"drinkability": 6,
"comment": ""
}
},
{
"beer": 17,
"user": 0,
"ratings": {
"bouquet": {
"malt": 1,
"hops": 1,
"other": 4
},
"looks": {
"color": 2,
"clarity": 0,
"foam": 2
},
"taste": {
"malt": 1,
"hops": 3,
"co2": 1,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 8,
"comment": ""
}
},
{
"beer": 18,
"user": 0,
"ratings": {
"bouquet": {
"malt": 2,
"hops": 1,
"other": 3
},
"looks": {
"color": 2,
"clarity": 2,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 1,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 9,
"comment": ""
}
},
{
"beer": 19,
"user": 0,
"ratings": {
"bouquet": {
"malt": 3,
"hops": 0,
"other": 2
},
"looks": {
"color": 1,
"clarity": 1,
"foam": 2
},
"taste": {
"malt": 2,
"hops": 0,
"co2": 2,
"aftertaste": 3,
"balance": 3,
"other": 3
},
"body": 4,
"drinkability": 8,
"comment": ""
}
}
]
}
var data = tributary.data;
var beer = data.beers;
var users = data.users;
var tastings = data.tasting;
var getBouquetTotal = function(b) {
var bouquet = 0;
bouquet += b.hops;
bouquet += b.malt;
bouquet += b.other;
return bouquet;
};
var getLooksTotal = function(l) {
var looks = 0;
looks += l.clarity;
looks += l.color;
looks += l.foam;
return looks;
};
var getTasteTotal = function(t) {
var taste = 0;
taste += t.aftertaste;
taste += t.balance;
taste += t.co2;
taste += t.hops;
taste += t.malt;
taste += t.other;
return taste;
};
var getTotal = function(r) {
var rating = 0;
rating += r.body;
rating += r.drinkability;
rating += getBouquetTotal(r.bouquet);
rating += getLooksTotal(r.looks);
rating += getTasteTotal(r.taste);
return rating;
};
var nestedRatings = d3.nest()
.key(function(r) {
return r.user;
}).entries(tastings);
var total = nestedRatings.map(function(d) {
var total = {};
total.rating = d.values.map(function(t) {
var thisBeer = {};
thisBeer.beer = beer[t.beer];
thisBeer.rating = getTotal(t.ratings);
return thisBeer;
});
total.user = users[d.key];
return total;
});
var svg = d3.select("svg");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment