Skip to content

Instantly share code, notes, and snippets.

/_.md

Forked from poezn/_.md
Created September 4, 2012 02:45
Show Gist options
  • Save anonymous/3615982 to your computer and use it in GitHub Desktop.
Save anonymous/3615982 to your computer and use it in GitHub Desktop.
just another inlet to tributary
{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":604,"height":417,"hide":false},"endpoint":"tributary","editor_json0":{"vim":false,"emacs":false,"width":740,"height":194,"hide":true}}
[{"city":"Trondheim","country":" Norway","lat":63.4305149,"lon":10.3950528,"price":188.91,"rent":59.16,"groceries":193.94},{"city":"Stavanger","country":" Norway","lat":58.9644239,"lon":5.72626,"price":171.32,"rent":78.08,"groceries":147.74},{"city":"Zurich","country":" Switzerland","lat":47.3690239,"lon":8.5380326,"price":152.84,"rent":74.58,"groceries":143.7},{"city":"Oslo","country":" Norway","lat":59.9138204,"lon":10.7387413,"price":152.03,"rent":57.4,"groceries":139.22},{"city":"Geneva","country":" Switzerland","lat":46.2038099,"lon":6.1399589,"price":146.24,"rent":79.05,"groceries":138.95},{"city":"Bern","country":" Switzerland","lat":46.9479986,"lon":7.4481481,"price":142.44,"rent":57.44,"groceries":126.78},{"city":"Lucerne","country":" Switzerland","lat":47.045546,"lon":8.308017,"price":139.94,"rent":72.45,"groceries":146.52},{"city":"Perth","country":" Australia","lat":-31.9554,"lon":115.85859,"price":139.63,"rent":43.76,"groceries":113.13},{"city":"Bergen","country":" Norway","lat":60.3880719,"lon":5.3318512,"price":138.79,"rent":55.98,"groceries":135.46},{"city":"Tokyo","country":" Japan","lat":35.6894875,"lon":139.6917064,"price":135.23,"rent":95.43,"groceries":120.42},{"city":"Sydney","country":" Australia","lat":-33.867139,"lon":151.207114,"price":132.39,"rent":86.25,"groceries":121.11},{"city":"Adelaide","country":" Australia","lat":-34.9286212,"lon":138.5999594,"price":129.6,"rent":47.3,"groceries":120.68},{"city":"Monaco","country":" Monaco","lat":43.7325291,"lon":7.418907,"price":128.15,"rent":173.08,"groceries":89.8},{"city":"Copenhagen","country":" Denmark","lat":55.6762944,"lon":12.5681157,"price":123.82,"rent":48.65,"groceries":104.25},{"city":"Edinburgh","country":" United Kingdom","lat":55.9501755,"lon":-3.1875359,"price":122.52,"rent":38.21,"groceries":92.92},{"city":"Melbourne","country":" Australia","lat":-37.814251,"lon":144.963169,"price":121.53,"rent":64.37,"groceries":112.5},{"city":"Dublin","country":" Ireland","lat":53.344104,"lon":-6.2674937,"price":119.56,"rent":48.3,"groceries":109.96},{"city":"London","country":" United Kingdom","lat":51.5001524,"lon":-0.1262362,"price":118.52,"rent":87.34,"groceries":92.59},{"city":"Arhus","country":" Denmark","lat":56.1581354,"lon":10.2120017,"price":115.96,"rent":65.9,"groceries":94.68},{"city":"Canberra","country":" Australia","lat":-35.28204,"lon":149.12858,"price":115.89,"rent":53.55,"groceries":106.77},{"city":"Brisbane","country":" Australia","lat":-27.46758,"lon":153.027892,"price":114.7,"rent":57.19,"groceries":113.64},{"city":"Paris","country":" France","lat":48.8566667,"lon":2.3509871,"price":113.88,"rent":63.47,"groceries":95.93},{"city":"Malmo","country":" Sweden","lat":55.6033306,"lon":13.0013029,"price":112.89,"rent":38.45,"groceries":92.55},{"city":"Toulouse","country":" France","lat":43.604652,"lon":1.444209,"price":112.28,"rent":29.9,"groceries":89.1},{"city":"Riyadh","country":" Saudi Arabia","lat":24.6880015,"lon":46.7224333,"price":112.03,"rent":19.91,"groceries":138.45},{"city":"Amsterdam","country":" Netherlands","lat":52.3738007,"lon":4.8909347,"price":110.78,"rent":64.61,"groceries":69.93},{"city":"Darwin","country":" Australia","lat":-12.461334,"lon":130.841904,"price":110.41,"rent":56.44,"groceries":92.67},{"city":"Auckland","country":" New Zealand","lat":-36.847385,"lon":174.765735,"price":110.36,"rent":36.8,"groceries":98.74},{"city":"Gent","country":" Belgium","lat":51.05665,"lon":3.72,"price":109.27,"rent":36.38,"groceries":81.58},{"city":"Stockholm","country":" Sweden","lat":59.3327881,"lon":18.0644881,"price":109.14,"rent":37.75,"groceries":87.42},{"city":"Brussels","country":" Belgium","lat":50.8462807,"lon":4.3547273,"price":109.1,"rent":40.63,"groceries":91.44},{"city":"Aberdeen","country":" United Kingdom","lat":57.1474915,"lon":-2.095397,"price":109.08,"rent":42.04,"groceries":103.8},{"city":"Boston","country":" United States","lat":42.35892,"lon":-71.05781,"price":106.8,"rent":69.66,"groceries":113.24},{"city":"Dusseldorf","country":" Germany","lat":51.2249429,"lon":6.7756524,"price":106.51,"rent":25.77,"groceries":77.03},{"city":"Wellington","country":" New Zealand","lat":-41.28648,"lon":174.776217,"price":106.02,"rent":37.02,"groceries":104.2},{"city":"Turin","country":" Italy","lat":45.0705621,"lon":7.6866186,"price":105.68,"rent":40.22,"groceries":86.86},{"city":"Rome","country":" Italy","lat":41.8954656,"lon":12.4823243,"price":105.6,"rent":60.03,"groceries":87.02},{"city":"Vancouver","country":" Canada","lat":49.263588,"lon":-123.138565,"price":105.29,"rent":60.49,"groceries":103.55},{"city":"Edmonton","country":" Canada","lat":53.540941,"lon":-113.493698,"price":105.28,"rent":38.95,"groceries":104.56},{"city":"Brighton","country":" United Kingdom","lat":50.819522,"lon":-0.13642,"price":104.73,"rent":54.42,"groceries":80.84},{"city":"Birmingham","country":" United Kingdom","lat":52.4829614,"lon":-1.893592,"price":104.57,"rent":42.93,"groceries":94.22},{"city":"Toronto","country":" Canada","lat":43.670233,"lon":-79.386755,"price":104.53,"rent":52.42,"groceries":96.13},{"city":"Helsinki","country":" Finland","lat":60.1698791,"lon":24.9384078,"price":104.08,"rent":56.58,"groceries":81},{"city":"Venice","country":" Italy","lat":45.4343363,"lon":12.3387844,"price":103.56,"rent":31.33,"groceries":70.18},{"city":"Honolulu","country":" United States","lat":21.3069444,"lon":-157.8583333,"price":103.46,"rent":59.01,"groceries":103.67},{"city":"Calgary","country":" Canada","lat":51.055149,"lon":-114.062438,"price":103.38,"rent":40.93,"groceries":99.95},{"city":"Sao Paolo","country":" Brazil","lat":-23.628889,"lon":-46.655056,"price":102.96,"rent":35.6,"groceries":62.93},{"city":"Tampere","country":" Finland","lat":61.4980229,"lon":23.7648591,"price":102.68,"rent":30.37,"groceries":100.74},{"city":"San Francisco","country":" United States","lat":37.775206,"lon":-122.419209,"price":102.52,"rent":90.04,"groceries":97.84},{"city":"Cagliari","country":" Italy","lat":39.2154583,"lon":9.1092282,"price":101.88,"rent":29.29,"groceries":72.93},{"city":"Hanover","country":" Germany","lat":52.3720683,"lon":9.7356861,"price":101.82,"rent":28.11,"groceries":82.62},{"city":"Belfast","country":" United Kingdom","lat":54.5972686,"lon":-5.9301088,"price":101.74,"rent":22.58,"groceries":88.98},{"city":"Vienna","country":" Austria","lat":48.2092062,"lon":16.3727778,"price":101.47,"rent":46.87,"groceries":82.49},{"city":"Seattle","country":" United States","lat":47.620973,"lon":-122.347276,"price":101.04,"rent":48.15,"groceries":100.9},{"city":"Strasbourg","country":" France","lat":48.5829331,"lon":7.7437488,"price":100.86,"rent":32.03,"groceries":76.03},{"city":"Florence","country":" Italy","lat":43.7687324,"lon":11.2569013,"price":100.43,"rent":41.39,"groceries":72.16},{"city":"Thessaloniki","country":" Greece","lat":40.63935,"lon":22.944607,"price":100.39,"rent":18.96,"groceries":69.76},{"city":"Erlangen","country":" Germany","lat":49.599937,"lon":11.0063,"price":100.39,"rent":33.07,"groceries":92.92},{"city":"Hamburg","country":" Germany","lat":53.5538148,"lon":9.9915752,"price":100.18,"rent":37.35,"groceries":92.62},{"city":"Haifa","country":" Israel","lat":32.83036,"lon":34.974339,"price":100.12,"rent":26.52,"groceries":78.81},{"city":"Reykjavik","country":" Iceland","lat":64.135338,"lon":-21.89521,"price":100.11,"rent":31.82,"groceries":95.54},{"city":"New York","country":" United States","lat":40.756054,"lon":-73.986951,"price":100,"rent":100,"groceries":100},{"city":"Leeds","country":" United Kingdom","lat":53.7996388,"lon":-1.5491221,"price":98.85,"rent":34.95,"groceries":81.88},{"city":"Phoenix","country":" United States","lat":33.4483771,"lon":-112.0740373,"price":98.57,"rent":32.76,"groceries":85.05},{"city":"Washington","country":" United States","lat":38.8951118,"lon":-77.0363658,"price":98.19,"rent":69.37,"groceries":89.39},{"city":"Linkoping","country":" Sweden","lat":58.4163681,"lon":15.6242757,"price":98.06,"rent":26.92,"groceries":90.51},{"city":"Montreal","country":" Canada","lat":45.545447,"lon":-73.639076,"price":97.86,"rent":37.57,"groceries":94.88},{"city":"Bologna","country":" Italy","lat":44.4942191,"lon":11.3464815,"price":97.82,"rent":38.03,"groceries":92.02},{"city":"Nice","country":" France","lat":43.7034273,"lon":7.2662656,"price":96.89,"rent":34.95,"groceries":81.58},{"city":"Milan","country":" Italy","lat":45.4636889,"lon":9.1881408,"price":96.88,"rent":49.22,"groceries":74.25},{"city":"Winnipeg","country":" Canada","lat":49.886083,"lon":-97.152921,"price":96.64,"rent":32.72,"groceries":96.9},{"city":"Athens","country":" Greece","lat":37.97918,"lon":23.716647,"price":96.49,"rent":20.82,"groceries":71.85},{"city":"Singapore","country":" Singapore","lat":1.2894066,"lon":103.8499619,"price":96.08,"rent":90.69,"groceries":82.76},{"city":"Munich","country":" Germany","lat":48.1391265,"lon":11.5801863,"price":95.95,"rent":46.08,"groceries":82.22},{"city":"Bordeaux","country":" France","lat":44.8373682,"lon":-0.576144,"price":95.92,"rent":27.63,"groceries":78.45},{"city":"Genoa","country":" Italy","lat":44.4070624,"lon":8.9339889,"price":95.06,"rent":35.04,"groceries":82.91},{"city":"Manchester","country":" United Kingdom","lat":53.4807125,"lon":-2.2343765,"price":94.96,"rent":36.44,"groceries":79.54},{"city":"Christchurch","country":" New Zealand","lat":-43.531637,"lon":172.636645,"price":94.35,"rent":28,"groceries":88.5},{"city":"Halifax","country":" Canada","lat":44.648881,"lon":-63.575312,"price":94.3,"rent":34.13,"groceries":95.04},{"city":"San Jose","country":" United States","lat":37.3393857,"lon":-121.8949555,"price":94.11,"rent":73.36,"groceries":82.33},{"city":"Columbus","country":" United States","lat":39.962208,"lon":-83.000676,"price":94.03,"rent":20.43,"groceries":86.75},{"city":"Stuttgart","country":" Germany","lat":48.7771056,"lon":9.1807688,"price":94.01,"rent":33.18,"groceries":68.14},{"city":"Marbella","country":" Spain","lat":36.5099367,"lon":-4.8863523,"price":93.95,"rent":30.68,"groceries":69.65},{"city":"Chania","country":" Greece","lat":35.516236,"lon":24.018807,"price":93.77,"rent":18.01,"groceries":69.52},{"city":"Ottawa","country":" Canada","lat":45.411572,"lon":-75.698194,"price":93.76,"rent":36.87,"groceries":96.84},{"city":"Brasilia","country":" Brazil","lat":-15.7801482,"lon":-47.9291698,"price":93.08,"rent":33.99,"groceries":65.89},{"city":"Hartford","country":" United States","lat":41.7637111,"lon":-72.6850932,"price":92.9,"rent":47.57,"groceries":108.41},{"city":"Indianapolis","country":" United States","lat":39.7683765,"lon":-86.1580423,"price":92.5,"rent":31.99,"groceries":72.01},{"city":"Marseille","country":" France","lat":43.296482,"lon":5.36978,"price":92.13,"rent":31.44,"groceries":88.65},{"city":"Frankfurt","country":" Germany","lat":50.1115118,"lon":8.6805059,"price":92.02,"rent":34.75,"groceries":65.96},{"city":"Rio De Janeiro","country":" Brazil","lat":-22.9035393,"lon":-43.2095869,"price":91.85,"rent":39.61,"groceries":59.8},{"city":"Nicosia","country":" Cyprus","lat":35.167604,"lon":33.373621,"price":91.8,"rent":25.66,"groceries":76.36},{"city":"London","country":" Canada","lat":51.5001524,"lon":-0.1262362,"price":91.51,"rent":34.41,"groceries":78.95},{"city":"Lyon","country":" France","lat":45.767299,"lon":4.8343287,"price":91.14,"rent":34.41,"groceries":82.18},{"city":"San Diego","country":" United States","lat":32.7153292,"lon":-117.1572551,"price":91.05,"rent":57.88,"groceries":81.09},{"city":"Los Angeles","country":" United States","lat":34.0522342,"lon":-118.2436849,"price":90.87,"rent":63.97,"groceries":73.58},{"city":"San Juan","country":" Puerto Rico","lat":18.43313,"lon":-66.05169,"price":90.78,"rent":31.15,"groceries":69.25},{"city":"Cologne","country":" Germany","lat":50.9406645,"lon":6.9599115,"price":90.73,"rent":29.58,"groceries":74.64},{"city":"Minneapolis","country":" United States","lat":44.9799654,"lon":-93.2638361,"price":90.26,"rent":34.78,"groceries":72.84},{"city":"Tampa","country":" United States","lat":27.9475216,"lon":-82.4584279,"price":89.97,"rent":32.39,"groceries":64.01},{"city":"Sliema","country":" Malta","lat":35.9122222,"lon":14.5041667,"price":89.88,"rent":26.35,"groceries":70.55},{"city":"Berlin","country":" Germany","lat":52.5234051,"lon":13.4113999,"price":89.09,"rent":35.8,"groceries":75.36},{"city":"Waterloo","country":" Canada","lat":43.480926,"lon":-80.537664,"price":89.02,"rent":29.71,"groceries":87.06},{"city":"Baltimore","country":" United States","lat":39.2903848,"lon":-76.6121893,"price":88.99,"rent":54.12,"groceries":101.95},{"city":"Sevilla","country":" Spain","lat":37.38264,"lon":-5.9962951,"price":88.96,"rent":18.79,"groceries":64.69},{"city":"Beirut","country":" Lebanon","lat":33.8869444,"lon":35.5130556,"price":88.92,"rent":37.05,"groceries":44.54},{"city":"Barcelona","country":" Spain","lat":41.387917,"lon":2.1699187,"price":88.82,"rent":33.92,"groceries":65.26},{"city":"Philadelphia","country":" United States","lat":39.952335,"lon":-75.163789,"price":88.36,"rent":58.85,"groceries":83.39},{"city":"Hong Kong","country":" Hong Kong","lat":22.4060834,"lon":114.1201536,"price":88.13,"rent":106.22,"groceries":85.25},{"city":"Madrid","country":" Spain","lat":40.4166909,"lon":-3.7003454,"price":87.93,"rent":39.57,"groceries":60.85},{"city":"Graz","country":" Austria","lat":47.070714,"lon":15.439504,"price":87.76,"rent":35.14,"groceries":77.79},{"city":"Dallas","country":" United States","lat":32.802955,"lon":-96.769923,"price":87.62,"rent":38.51,"groceries":67.93},{"city":"Nuremberg","country":" Germany","lat":49.45052,"lon":11.08048,"price":87.54,"rent":30.04,"groceries":69.56},{"city":"Jerusalem","country":" Israel","lat":31.7857,"lon":35.2007,"price":87.54,"rent":35.97,"groceries":70.06},{"city":"Houston","country":" United States","lat":29.7628844,"lon":-95.3830615,"price":86.97,"rent":39.7,"groceries":74.96},{"city":"Bilbao","country":" Spain","lat":43.2569629,"lon":-2.9234409,"price":86.62,"rent":37.7,"groceries":60.47},{"city":"Leicester","country":" United Kingdom","lat":52.6347704,"lon":-1.1295191,"price":86.15,"rent":27.8,"groceries":82.09},{"city":"Campinas","country":" Brazil","lat":-22.9071048,"lon":-47.0632391,"price":85.98,"rent":23.7,"groceries":54.81},{"city":"Abu Dhabi","country":" United Arab Emirates","lat":24.476431,"lon":54.37051,"price":85.84,"rent":80.82,"groceries":72.59},{"city":"Chicago","country":" United States","lat":41.850033,"lon":-87.6500523,"price":85.41,"rent":49.96,"groceries":72.28},{"city":"Saint Louis","country":" United States","lat":38.6270025,"lon":-90.1994042,"price":84.91,"rent":23.22,"groceries":84.75},{"city":"Doha","country":" Qatar","lat":25.280282,"lon":51.522476,"price":84.73,"rent":63.5,"groceries":81.63},{"city":"Florianopolis","country":" Brazil","lat":-27.5969039,"lon":-48.5494544,"price":83.88,"rent":27.46,"groceries":69.26},{"city":"Pittsburgh","country":" United States","lat":40.4406248,"lon":-79.9958864,"price":83.72,"rent":22.56,"groceries":69.83},{"city":"Montevideo","country":" Uruguay","lat":-34.8333333,"lon":-56.1666667,"price":83.56,"rent":26.22,"groceries":66.73},{"city":"Dubai","country":" United Arab Emirates","lat":25.271139,"lon":55.307485,"price":83.39,"rent":67.87,"groceries":66.31},{"city":"Bremen","country":" Germany","lat":53.074981,"lon":8.807081,"price":82.85,"rent":22.77,"groceries":70.65},{"city":"Porto Alegre","country":" Brazil","lat":-30.0277041,"lon":-51.2287346,"price":82.33,"rent":23.75,"groceries":50.02},{"city":"Cincinnati","country":" United States","lat":39.1361111,"lon":-84.5030556,"price":82.18,"rent":29.11,"groceries":72.09},{"city":"Valencia","country":" Spain","lat":39.4702393,"lon":-0.3768049,"price":81.87,"rent":19.6,"groceries":57.18},{"city":"Patras","country":" Greece","lat":38.254465,"lon":21.7370665,"price":81.84,"rent":17.58,"groceries":63.73},{"city":"Curitiba","country":" Brazil","lat":-25.4283563,"lon":-49.2732515,"price":81.1,"rent":22.6,"groceries":57.17},{"city":"Detroit","country":" United States","lat":42.331427,"lon":-83.0457538,"price":79.72,"rent":30.54,"groceries":75.82},{"city":"Denver","country":" United States","lat":39.7391536,"lon":-104.9847034,"price":79.39,"rent":48.43,"groceries":69.23},{"city":"Austin","country":" United States","lat":30.267153,"lon":-97.7430608,"price":78.92,"rent":45.55,"groceries":80.38},{"city":"Portland","country":" United States","lat":45.5234515,"lon":-122.6762071,"price":77.22,"rent":33.8,"groceries":67.34},{"city":"Londrina","country":" Brazil","lat":-23.29273,"lon":-51.1732073,"price":76.68,"rent":23.42,"groceries":49.26},{"city":"Lisbon","country":" Portugal","lat":38.7071631,"lon":-9.135517,"price":76.33,"rent":29.49,"groceries":58.65},{"city":"Coimbra","country":" Portugal","lat":40.211491,"lon":-8.4292014,"price":75.74,"rent":15.84,"groceries":68.5},{"city":"Split","country":" Croatia","lat":43.5069058,"lon":16.4424496,"price":75.6,"rent":15.73,"groceries":59.97},{"city":"Salvador","country":" Brazil","lat":-12.9703817,"lon":-38.512382,"price":75.53,"rent":19.72,"groceries":49.95},{"city":"Casablanca","country":" Morocco","lat":33.5333333,"lon":-7.5833333,"price":75.49,"rent":36.51,"groceries":74.49},{"city":"Des Moines","country":" United States","lat":41.6005448,"lon":-93.6091064,"price":75.45,"rent":29.18,"groceries":68.64},{"city":"Ljubljana","country":" Slovenia","lat":46.0514263,"lon":14.5059655,"price":75.42,"rent":28.59,"groceries":62.73},{"city":"Maribor","country":" Slovenia","lat":46.5573993,"lon":15.645982,"price":75.17,"rent":28.11,"groceries":55.86},{"city":"Istanbul","country":" Turkey","lat":41.012379,"lon":28.975926,"price":74.89,"rent":23.21,"groceries":55.95},{"city":"Astana","country":" Kazakhstan","lat":51.179852,"lon":71.446682,"price":74.58,"rent":36.29,"groceries":50.62},{"city":"Johannesburg","country":" South Africa","lat":-26.2014863,"lon":28.045869,"price":74.23,"rent":38.34,"groceries":59.72},{"city":"Balneario Camboriu","country":" Brazil","lat":-26.991072,"lon":-48.6352084,"price":74.02,"rent":18.98,"groceries":48.29},{"city":"Las Vegas","country":" United States","lat":36.114646,"lon":-115.172816,"price":73.98,"rent":36,"groceries":66.83},{"city":"Manama","country":" Bahrain","lat":26.2185049,"lon":50.5705088,"price":71.86,"rent":47.24,"groceries":63.6},{"city":"Zagreb","country":" Croatia","lat":45.8150053,"lon":15.9785014,"price":71.49,"rent":21.12,"groceries":57.85},{"city":"Baku","country":" Azerbaijan","lat":40.3456149,"lon":49.606736,"price":71.24,"rent":41.03,"groceries":53.2},{"city":"San Jose","country":" Costa Rica","lat":9.9333333,"lon":-84.0833333,"price":71.17,"rent":25.95,"groceries":78.6},{"city":"Riga","country":" Latvia","lat":56.9465346,"lon":24.1048525,"price":70.75,"rent":15.16,"groceries":52.59},{"city":"Seoul","country":" South Korea","lat":37.566535,"lon":126.9779692,"price":70.53,"rent":37.1,"groceries":71.05},{"city":"Fortaleza","country":" Brazil","lat":-3.7183943,"lon":-38.5433948,"price":70.3,"rent":20.94,"groceries":51.92},{"city":"Bratislava","country":" Slovakia","lat":48.1483765,"lon":17.1073105,"price":69.94,"rent":29.17,"groceries":55.22},{"city":"Santiago","country":" Chile","lat":-33.4253598,"lon":-70.5664659,"price":69.89,"rent":20.62,"groceries":53.54},{"city":"Bogota","country":" Colombia","lat":4.609866,"lon":-74.08205,"price":69.5,"rent":21.86,"groceries":64.95},{"city":"Belo Horizonte","country":" Brazil","lat":-19.8157306,"lon":-43.9542226,"price":69.08,"rent":21.66,"groceries":46.67},{"city":"Porto","country":" Portugal","lat":41.149968,"lon":-8.6102426,"price":69.05,"rent":20.32,"groceries":52.65},{"city":"Santa Cruz De Tenerife","country":" Spain","lat":28.46981,"lon":-16.2548558,"price":68.98,"rent":22.67,"groceries":54.01},{"city":"Novosibirsk","country":" Russia","lat":55.0392304,"lon":82.9278181,"price":67.96,"rent":26.92,"groceries":46.04},{"city":"Saint Petersburg","country":" Russia","lat":59.939039,"lon":30.315785,"price":67.58,"rent":31.2,"groceries":49.09},{"city":"Kaunas","country":" Lithuania","lat":54.8968721,"lon":23.8924264,"price":67.44,"rent":16.93,"groceries":52.66},{"city":"Tallinn","country":" Estonia","lat":59.4388619,"lon":24.7544715,"price":66.95,"rent":15.82,"groceries":52.25},{"city":"Perm","country":" Russia","lat":58.8231929,"lon":56.5872481,"price":66.64,"rent":18.04,"groceries":59.01},{"city":"Budva","country":" Montenegro","lat":42.27977,"lon":18.83182,"price":66.16,"rent":19.29,"groceries":53.35},{"city":"Amman","country":" Jordan","lat":31.9565783,"lon":35.9456951,"price":65.95,"rent":14.51,"groceries":60.72},{"city":"Buenos Aires","country":" Argentina","lat":-34.6084175,"lon":-58.3731613,"price":65.93,"rent":21.58,"groceries":55.69},{"city":"Taipei","country":" Taiwan","lat":25.091075,"lon":121.5598345,"price":65.66,"rent":23.16,"groceries":82.38},{"city":"Jakarta","country":" Indonesia","lat":-6.211544,"lon":106.845172,"price":64.11,"rent":28.25,"groceries":69.89},{"city":"Vilnius","country":" Lithuania","lat":54.6893865,"lon":25.2800243,"price":63.84,"rent":15.58,"groceries":52.08},{"city":"Budapest","country":" Hungary","lat":47.4984056,"lon":19.0407578,"price":63.41,"rent":14.03,"groceries":46.92},{"city":"Yerevan","country":" Armenia","lat":40.183333,"lon":44.516667,"price":63.39,"rent":25.89,"groceries":37.69},{"city":"Yekaterinburg","country":" Russia","lat":56.837814,"lon":60.596842,"price":63.22,"rent":21.27,"groceries":51.07},{"city":"Prague","country":" Czech Republic","lat":50.0878114,"lon":14.4204598,"price":62.91,"rent":27.59,"groceries":49.5},{"city":"Debrecen","country":" Hungary","lat":47.5299739,"lon":21.6393571,"price":62.47,"rent":12.52,"groceries":51.07},{"city":"Tehran","country":" Iran","lat":35.696216,"lon":51.422945,"price":62.43,"rent":30.99,"groceries":56.64},{"city":"Brno","country":" Czech Republic","lat":49.1909804,"lon":16.6115347,"price":62.35,"rent":20.49,"groceries":48.46},{"city":"Izmir","country":" Turkey","lat":38.41885,"lon":27.12872,"price":62.12,"rent":14.54,"groceries":51.08},{"city":"Podgorica","country":" Montenegro","lat":42.4392,"lon":19.266,"price":61.72,"rent":17.49,"groceries":44.7},{"city":"Medellin","country":" Colombia","lat":6.2512899,"lon":-75.5759735,"price":61.43,"rent":15.28,"groceries":45.49},{"city":"Antalya","country":" Turkey","lat":36.88414,"lon":30.70563,"price":61,"rent":10.27,"groceries":44.91},{"city":"Kosice","country":" Slovakia","lat":48.7209956,"lon":21.2577477,"price":60.86,"rent":21.19,"groceries":47.9},{"city":"Ankara","country":" Turkey","lat":39.92077,"lon":32.85411,"price":60.73,"rent":14.95,"groceries":43.66},{"city":"Kiev","country":" Ukraine","lat":50.440951,"lon":30.5271814,"price":59.87,"rent":31.7,"groceries":41.78},{"city":"Mexico City","country":" Mexico","lat":19.4270499,"lon":-99.1275711,"price":59.68,"rent":23.22,"groceries":53.86},{"city":"Lima","country":" Peru","lat":-12.093084,"lon":-77.046491,"price":59.52,"rent":19.9,"groceries":51.37},{"city":"Osijek","country":" Croatia","lat":45.5600028,"lon":18.6758848,"price":59.5,"rent":13.07,"groceries":52.02},{"city":"Sarajevo","country":" Bosnia And Herzegovina","lat":43.8476,"lon":18.3564,"price":58.59,"rent":13.01,"groceries":43.89},{"city":"Cordoba","country":" Argentina","lat":-31.3989296,"lon":-64.1821289,"price":57.81,"rent":19.29,"groceries":52.43},{"city":"Tula","country":" Russia","lat":54.1966781,"lon":37.6178285,"price":57.72,"rent":15.46,"groceries":48.96},{"city":"Guadalajara","country":" Mexico","lat":20.67359,"lon":-103.343803,"price":57.67,"rent":10.28,"groceries":47.54},{"city":"Tbilisi","country":" Georgia","lat":41.7166667,"lon":44.7833333,"price":57.32,"rent":15.77,"groceries":40.89},{"city":"Monterrey","country":" Mexico","lat":25.673211,"lon":-100.309201,"price":56.6,"rent":23.53,"groceries":49.88},{"city":"Belgrade","country":" Serbia","lat":44.802416,"lon":20.465601,"price":56.21,"rent":17.13,"groceries":39.73},{"city":"Sofia","country":" Bulgaria","lat":42.6976489,"lon":23.3221545,"price":55.62,"rent":16.24,"groceries":45.83},{"city":"Kuala Lumpur","country":" Malaysia","lat":3.139003,"lon":101.686855,"price":55.55,"rent":17.71,"groceries":55.09},{"city":"Damascus","country":" Syria","lat":33.513,"lon":36.292,"price":55.5,"rent":14.22,"groceries":41.91},{"city":"Johor Baharu","country":" Malaysia","lat":1.46343,"lon":103.7547149,"price":55.32,"rent":7.56,"groceries":47.53},{"city":"Wroclaw","country":" Poland","lat":51.1078852,"lon":17.0385376,"price":54.85,"rent":19.34,"groceries":42.05},{"city":"Guayaquil","country":" Ecuador","lat":-2.203816,"lon":-79.897453,"price":54.76,"rent":10.14,"groceries":44.89},{"city":"Beijing","country":" China","lat":39.904667,"lon":116.408198,"price":54.38,"rent":28.71,"groceries":61.66},{"city":"Shanghai","country":" China","lat":31.2243531,"lon":121.4759159,"price":54.2,"rent":29.86,"groceries":51.64},{"city":"Ulaanbaatar","country":" Mongolia","lat":47.921378,"lon":106.90554,"price":53.86,"rent":24.01,"groceries":57.94},{"city":"Quito","country":" Ecuador","lat":-0.229498,"lon":-78.524277,"price":53.69,"rent":11.66,"groceries":47.42},{"city":"Warsaw","country":" Poland","lat":52.2296756,"lon":21.0122287,"price":53.64,"rent":22.81,"groceries":42.07},{"city":"Cairo","country":" Egypt","lat":30.064742,"lon":31.249509,"price":53.4,"rent":17.34,"groceries":45.39},{"city":"Poznan","country":" Poland","lat":52.406374,"lon":16.9251681,"price":53.2,"rent":13.93,"groceries":42.48},{"city":"Novi Sad","country":" Serbia","lat":45.262231,"lon":19.851858,"price":52.7,"rent":10.53,"groceries":36.62},{"city":"Iasi","country":" Romania","lat":47.1569444,"lon":27.5902778,"price":52.66,"rent":13.28,"groceries":43.5},{"city":"Bangkok","country":" Thailand","lat":13.7234186,"lon":100.4762319,"price":52.61,"rent":26.42,"groceries":63.49},{"city":"Guangzhou","country":" China","lat":23.129163,"lon":113.264435,"price":52.44,"rent":17.25,"groceries":70.42},{"city":"Varna","country":" Bulgaria","lat":43.2166452,"lon":27.9118058,"price":52.13,"rent":11.51,"groceries":45.17},{"city":"Katowice","country":" Poland","lat":50.2648919,"lon":19.0237815,"price":51.87,"rent":19.49,"groceries":43.11},{"city":"Gdansk","country":" Poland","lat":54.3520252,"lon":18.6466384,"price":51.64,"rent":20.34,"groceries":40.86},{"city":"Cluj-napoca","country":" Romania","lat":46.777248,"lon":23.59989,"price":51.35,"rent":10.94,"groceries":45.02},{"city":"Bucharest","country":" Romania","lat":44.430481,"lon":26.12298,"price":50.97,"rent":15.28,"groceries":39.77},{"city":"Banja Luka","country":" Bosnia And Herzegovina","lat":44.763891,"lon":17.189752,"price":50.12,"rent":11.38,"groceries":40.89},{"city":"Brasov","country":" Romania","lat":45.655651,"lon":25.6108,"price":50.05,"rent":9.04,"groceries":39.77},{"city":"Constanta","country":" Romania","lat":44.184217,"lon":28.643821,"price":49.97,"rent":14.32,"groceries":36.51},{"city":"Timisoara","country":" Romania","lat":45.7597222,"lon":21.23,"price":49.9,"rent":10.66,"groceries":44.77},{"city":"Plovdiv","country":" Bulgaria","lat":42.1438409,"lon":24.7495615,"price":49.05,"rent":10.38,"groceries":39.39},{"city":"Quezon City","country":" Philippines","lat":14.6333333,"lon":121.0333333,"price":48.83,"rent":13.86,"groceries":50.04},{"city":"Krakow","country":" Poland","lat":50.0646501,"lon":19.9449799,"price":48.63,"rent":19.48,"groceries":38.02},{"city":"Szczecin","country":" Poland","lat":53.4285438,"lon":14.5528116,"price":48.59,"rent":12.85,"groceries":38.88},{"city":"Hanoi","country":" Vietnam","lat":21.0333333,"lon":105.85,"price":47.83,"rent":40.93,"groceries":50.12},{"city":"Chisinau","country":" Moldova","lat":47.026859,"lon":28.841551,"price":47.81,"rent":12.35,"groceries":38.59},{"city":"Cebu","country":" Philippines","lat":10.3455617,"lon":123.8969328,"price":47.61,"rent":8.16,"groceries":47.26},{"city":"Minsk","country":" Belarus","lat":53.9156184,"lon":27.613668,"price":47.4,"rent":15.41,"groceries":35.32},{"city":"Manila","country":" Philippines","lat":14.5833333,"lon":120.9666667,"price":47.34,"rent":13.47,"groceries":48.24},{"city":"Makati","country":" Philippines","lat":14.5503169,"lon":121.0294446,"price":47.17,"rent":28.45,"groceries":40.15},{"city":"Managua","country":" Nicaragua","lat":12.1333333,"lon":-86.25,"price":46.57,"rent":11.08,"groceries":45.1},{"city":"Skopje","country":" Macedonia","lat":42.003812,"lon":21.452246,"price":46.51,"rent":11.74,"groceries":35.19},{"city":"Esfahan","country":" Iran","lat":32.65139,"lon":51.679192,"price":45.56,"rent":19.6,"groceries":47.53},{"city":"Nis","country":" Serbia","lat":43.31938,"lon":21.896328,"price":44.85,"rent":11.02,"groceries":31.88},{"city":"Lublin","country":" Poland","lat":51.2464536,"lon":22.5684463,"price":42.4,"rent":13.98,"groceries":34.5},{"city":"Gurgaon","country":" India","lat":28.46385,"lon":77.017838,"price":41.64,"rent":12.26,"groceries":36.11},{"city":"Ho Chi Minh City","country":" Vietnam","lat":10.7694444,"lon":106.6819444,"price":41.09,"rent":29.65,"groceries":48.66},{"city":"Algiers","country":" Algeria","lat":36.752887,"lon":3.042048,"price":40.6,"rent":13.23,"groceries":42.5},{"city":"Lahore","country":" Pakistan","lat":31.54505,"lon":74.340683,"price":40.09,"rent":7.75,"groceries":37.26},{"city":"Delhi","country":" India","lat":28.635308,"lon":77.22496,"price":37.93,"rent":12.08,"groceries":35.23},{"city":"Davao","country":" Philippines","lat":7.0644444,"lon":125.6077778,"price":37.59,"rent":11.36,"groceries":39.78},{"city":"Mumbai","country":" India","lat":19.017656,"lon":72.856178,"price":36.62,"rent":21.51,"groceries":35.97},{"city":"Bangalore","country":" India","lat":12.971606,"lon":77.594376,"price":34.92,"rent":9.8,"groceries":35.32},{"city":"Indore","country":" India","lat":22.725313,"lon":75.865555,"price":34.85,"rent":5.75,"groceries":32.9},{"city":"Chandigarh","country":" India","lat":30.731345,"lon":76.775385,"price":33.95,"rent":6.98,"groceries":31.63},{"city":"Ahmedabad","country":" India","lat":23.039574,"lon":72.56602,"price":33.12,"rent":6.47,"groceries":29.26},{"city":"Hyderabad","country":" India","lat":17.385044,"lon":78.486671,"price":32.67,"rent":7.26,"groceries":32.57},{"city":"Madurai","country":" India","lat":9.915997,"lon":78.121847,"price":32.05,"rent":5.65,"groceries":29.99},{"city":"Kolkata","country":" India","lat":22.572646,"lon":88.363895,"price":31.97,"rent":8.81,"groceries":35.06},{"city":"Pune","country":" India","lat":18.520469,"lon":73.856621,"price":31.9,"rent":9.34,"groceries":32.74},{"city":"Chennai","country":" India","lat":13.060416,"lon":80.249634,"price":31.09,"rent":9.19,"groceries":32.57},{"city":"Kochi","country":" India","lat":9.939248,"lon":76.259625,"price":31.07,"rent":5.28,"groceries":34.43},{"city":"Thiruvananthapuram","country":" India","lat":8.487495,"lon":76.948623,"price":30.3,"rent":5.09,"groceries":35.64},{"city":"Ludhiana","country":" India","lat":30.90609,"lon":75.846786,"price":30.2,"rent":7.89,"groceries":31.27}]
// Fonts stuff
WebFontConfig = {
google: { families: [ 'Exo:400,900:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
var col = tributary.costofliving;
var svg = d3.select("svg");
console.log(col);
var cw = 432;
var ch = 393;
//var price_min = d3.min(col, function(d) {return d.price});
var price_min = 0;
var price_max = d3.max(col, function(d) {return d.price});
//var rent_min = d3.min(col, function(d) {return d.rent});
var rent_min = 0;
var rent_max = d3.max(col, function(d) {return d.rent});
var price_scale = d3.scale.linear()
.domain([price_min, price_max])
.range([ch, 0]);
var rent_scale = d3.scale.linear()
.domain([rent_min, rent_max])
.range([0, cw]);
var chart = svg.append("g")
.attr("transform", "translate(" + [205, 184] + ")");
//chart
chart.append("rect")
.attr({
width: cw,
height: ch,
fill: "#E7DDD0",
stroke: "none"
})
var circles = chart.selectAll("circle")
.data(col);
circles.enter()
.append("circle")
circles.attr({
r: 6,
cx: function(d,i) {
return rent_scale(d.rent);
},
cy: function(d,i) {
return price_scale(d.price);
},
fill: "#812222",
"fill-opacity": 0.32,
stroke: "#000000",
"stroke-width": 0
})
//axis stuff
//https://github.com/mbostock/d3/wiki/SVG-Axes#wiki-axis
var xAxisGroup = svg.append("g")
.attr("transform", "translate(" + [204, 187 + ch] + ")")
var xAxis = d3.svg.axis()
.scale(rent_scale)
//.tickValues([rent_min, (rent_max+rent_min)/2, rent_max]);
var yAxisGroup = svg.append("g")
.attr("transform", "translate(" + [200, 184] + ")")
var yAxis = d3.svg.axis()
.scale(price_scale)
.orient("left")
//.tickValues([price_min, (price_max+price_min)/2, price_max]);
xAxis(xAxisGroup);
yAxis(yAxisGroup);
//xAxisGroup.call(xAxis)
xAxisGroup.selectAll("path,line")
.style({
"stroke": "#000",
"fill": "none"
})
yAxisGroup.selectAll("path,line")
.style({
"stroke": "#000",
"fill": "none"
})
xAxisGroup.selectAll('text')
.attr('font-size', 12);
yAxisGroup.selectAll('text')
.attr('font-size', 12)
//annotations
var title = svg.append("text")
.text("Cost of Living: Price Index vs. Rent Index")
.attr({
"transform": "translate(" + [421, 130] + ")",
"text-anchor": "middle",
"font-family": "Exo",
"font-weight": 900,
"font-size": 25
})
var ylabel = svg.append("text")
.text("Price Index")
.attr('font-family', 'Exo')
.attr('font-weight', 'bold')
.attr("transform", "translate(" + [147, 263] + ")" + "rotate(" + -90 + ")")
var xlabel = svg.append("text")
.text("Rent Index")
.attr('font-family', 'Exo')
.attr('font-weight', 'bold')
.attr("transform", "translate(" + [562, 635] + ")")
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment