Commit e9031003 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

updated population numbers, added some missing locations (fixes #2)

parent f3b89649
Pipeline #286 passed with stage
in 1 second
......@@ -58,3 +58,5 @@ Some improvements have been suggested, no promises if and when they get implemen
- Changed the way rolling average is calculated: a rolling average over `n` days for the current day is now calculated from data from the day and `n-1` proceeding days, instead of centering the rolling average on the selected day.
Fixes #1.
- The above also means we can easily support even numbers for the number of days a rolling average is calculated over. So we do. And as a cherry on top, rolling average over a period of up to 31 days can be selected; there are no and never have been any restrictions over period if entered directly in the url (for example, here's a [65-day rolling average of new cases in USA](https://rys.io/covid/#delta,average:65;united-states))
- Updated population numbers, adding some missing countries.
Fixes #2/
......@@ -17,16 +17,16 @@ var siteData = {
"population": 32225560
},
"Albania": {
"population": 2876591
"population": 2845955
},
"Algeria": {
"population": 43000000
"population": 43900000
},
"Andorra": {
"population": 76177
"population": 77543
},
"Angola": {
"population": 25789024
"population": 31127674
},
"Antigua and Barbuda": {
"population": 81799
......@@ -35,7 +35,7 @@ var siteData = {
"population": 44938712
},
"Armenia": {
"population": 3018854
"population": 2956900
},
"Australia": {
"population": 23401892
......@@ -44,7 +44,7 @@ var siteData = {
"population": 8902600
},
"Azerbaijan": {
"population": 10027874
"population": 10127874
},
"Bahamas": {
"population": 351461
......@@ -56,61 +56,61 @@ var siteData = {
"population": 149772364
},
"Barbados": {
"population": 277821
"population": 287025
},
"Belarus": {
"population": 9491800
"population": 9408400
},
"Belgium": {
"population": 11515793
"population": 11492641
},
"Belize": {
"population": 408487
},
"Benin": {
"population": 10008749
"population": 11733059
},
"Bhutan": {
"population": 741700
"population": 727145
},
"Bolivia": {
"population": 11428245
},
"Bosnia and Herzegovina": {
"population": 3511372
"population": 3301000
},
"Botswana": {
"population": 2254068
"population": 2024904
},
"Brazil": {
"population": 210147125
},
"Brunei": {
"population": 442400
"population": 459500
},
"Bulgaria": {
"population": 7000039
"population": 6951482
},
"Burkina Faso": {
"population": 20107509
"population": 21510181
},
"Burundi": {
"population": 11745876
"population": 11865821
},
"Cambodia": {
"population": 15288489
},
"Cameroon": {
"population": 17463836
"population": 26545864
},
"Canada": {
"population": 37894799
"population": 38005238
},
"Cabo Verde": {
"population": 543767
},
"Central African Republic": {
"population": 4987640
"population": 3895139
},
"Chad": {
"population": 13670084
......@@ -119,34 +119,37 @@ var siteData = {
"population": 17574003
},
"China": {
"population": 1339724852
"population": 1400050000
},
"Colombia": {
"population": 50372424
},
"Comoros": {
"population": 850688
},
"Congo (Brazzaville)": {
"population": 5244359
},
"Congo (Kinshasa)": {
"population": 91931000
"population": 101780263
},
"Costa Rica": {
"population": 4999441
},
"Croatia": {
"population": 4076246
"population": 4058165
},
"Cuba": {
"population": 11209628
"population": 11193470
},
"Cyprus": {
"population": 838897
},
"Czechia": {
"population": 10649800
"population": 10693939
},
"Denmark": {
"population": 5822763
"population": 5837213
},
"Diamond Princess": {
"population": 3711
......@@ -158,7 +161,7 @@ var siteData = {
"population": 71293
},
"Dominican Republic": {
"population": 10735896
"population": 10878246
},
"East Timor": {
"population": 1183643
......@@ -173,13 +176,13 @@ var siteData = {
"population": 6420746
},
"Equatorial Guinea": {
"population": 1222442
"population": 1454789
},
"Eritrea": {
"population": 5750433
"population": 6081196
},
"Estonia": {
"population": 1328360
"population": 1328976
},
"Eswatini": {
"population": 1093238
......@@ -191,28 +194,28 @@ var siteData = {
"population": 926276
},
"Finland": {
"population": 5521158
"population": 5528737
},
"France": {
"population": 67022000
"population": 67081000
},
"Gabon": {
"population": 2119275
},
"Gambia": {
"population": 2051363
"population": 2173999
},
"Georgia": {
"population": 3723464
"population": 3716858
},
"Germany": {
"population": 83149300
"population": 83166711
},
"Ghana": {
"population": 31072940
},
"Greece": {
"population": 10768477
"population": 10724599
},
"Grenada": {
"population": 111454
......@@ -227,28 +230,28 @@ var siteData = {
// "population": 63026
// },
"Guinea": {
"population": 11628972
"population": 11523261
},
"Guyana": {
"population": 786391
},
"Haiti": {
"population": 11123178
"population": 11439646
},
"Honduras": {
"population": 8303771
},
"Hong Kong": {
"population": 7482500
"population": 7500700
},
"Hungary": {
"population": 9772756
"population": 9769526
},
"Iceland": {
"population": 364260
"population": 364134
},
"Ireland": {
"population": 4921500
"population": 4977400
},
"India": {
"population": 1210854977
......@@ -269,109 +272,115 @@ var siteData = {
"population": 7412200
},
"Italy": {
"population": 60317546
"population": 60317116
},
"Ivory Coast": {
"population": 23740424
"population": 26378274
},
"Jamaica": {
"population": 2890299
"population": 2726667
},
"Japan": {
"population": 126150000
"population": 125960000
},
// "Jersey": {
// "population": 106800
// },
"Jordan": {
"population": 10407793
"population": 10658123
},
"Kazakhstan": {
"population": 18448600
"population": 18711200
},
"Kenya": {
"population": 47564296
},
"Kosovo": {
"population": 1810463
"population": 1873160
},
"Kuwait": {
"population": 4621638
"population": 4420110
},
"Kyrgyzstan": {
"population": 6389500
"population": 6586600
},
"Laos": {
"population": 7096376
"population": 7123205
},
"Latvia": {
"population": 1919968
"population": 1907675
},
"Lebanon": {
"population": 6859408
},
"Lesotho": {
"population": 2142249
},
"Liberia": {
"population": 4809768
"population": 5073296
},
"Libya": {
"population": 6653210
"population": 6871287
},
"Liechtenstein": {
"population": 38557
"population": 38749
},
"Lithuania": {
"population": 2794329
"population": 2795334
},
"Luxembourg": {
"population": 613894
"population": 626108
},
"Macau": {
"population": 667400
"population": 696100
},
"Madagascar": {
"population": 26262313
},
"Malaysia": {
"population": 32772100
"population": 32730000
},
"Malawi": {
"population": 18143217
"population": 19129952
},
"Maldives": {
"population": 392473
"population": 379270
},
"Mali": {
"population": 19329841
"population": 20250833
},
"Malta": {
"population": 493559
"population": 514564
},
"Marshall Islands": {
"population": 53158
},
"Mauritania": {
"population": 3537368
},
"Mauritius": {
"population": 1265985
"population": 1265475
},
"Mexico": {
"population": 126577691
"population": 128649565
},
"Moldova": {
"population": 2681735
"population": 2640438
},
"Monaco": {
"population": 38300
},
"Mongolia": {
"population": 3278290
"population": 3353470
},
"Montenegro": {
"population": 631219
"population": 622359
},
"Morocco": {
"population": 35581294
"population": 37037908
},
"Mozambique": {
"population": 27909798
"population": 30066648
},
"MS Zaandam": {
"population": 1829
......@@ -380,25 +389,25 @@ var siteData = {
"population": 53582855
},
"Namibia": {
"population": 2606971
"population": 2746745
},
"Nepal": {
"population": 26494504
},
"Netherlands": {
"population": 17424978
"population": 17418808
},
"New Zealand": {
"population": 4977520
"population": 0
},
"Nicaragua": {
"population": 6167237
"population": 6486201
},
"Niger": {
"population": 17138707
},
"Nigeria": {
"population": 204630242
"population": 206630269
},
"North Macedonia": {
"population": 2077132
......@@ -413,40 +422,40 @@ var siteData = {
"population": 2773479
},
"Pakistan": {
"population": 212228286
"population": 207
},
"Palestine": {
"population": 4952168
"population": 5051953
},
"Panama": {
"population": 3405813
},
"Papua New Guinea": {
"population": 8606323
"population": 8935000
},
"Paraguay": {
"population": 7152703
"population": 7292672
},
"Peru": {
"population": 32824358
},
"Philippines": {
"population": 100981437
"population": 109048269
},
"Poland": {
"population": 38386000
"population": 38383000
},
"Portugal": {
"population": 10276617
"population": 10295909
},
"Qatar": {
"population": 2641669
"population": 2795484
},
"Romania": {
"population": 19401658
"population": 19317984
},
"Russia": {
"population": 146745098
"population": 146748590
},
"Rwanda": {
"population": 12374397
......@@ -458,10 +467,10 @@ var siteData = {
"population": 165595
},
"San Marino": {
"population": 33344
"population": 34232
},
"Sao Tome and Principe": {
"population": 211028
"population": 178739
},
"Saudi Arabia": {
"population": 34218169
......@@ -473,37 +482,40 @@ var siteData = {
"population": 6963764
},
"Seychelles": {
"population": 97096
"population": 98462
},
"Sierra Leone": {
"population": 7092113
},
"Singapore": {
"population": 5638700
"population": 5703600
},
"Slovakia": {
"population": 5450421
"population": 5457926
},
"Slovenia": {
"population": 2094060
"population": 2095861
},
"Solomon Islands": {
"population": 652857
},
"Somalia": {
"population": 11031386
"population": 15893219
},
"South Africa": {
"population": 58775022
"population": 59622350
},
"South Korea": {
"population": 51709098
},
"South Sudan": {
"population": 10975927
"population": 12778250
},
"Spain": {
"population": 46733038
"population": 47431256
},
"Sri Lanka": {
"population": 21670000
"population": 21803000
},
"St. Vincent and the Grenadines": {
"population": 109991
......@@ -515,28 +527,31 @@ var siteData = {
"population": 541638
},
"Sweden": {
"population": 10333456
"population": 10367232
},
"Switzerland": {
"population": 8570146
},
"Syria": {
"population": 17070135
"population": 17500657
},
"Taiwan": {
"population": 23780452
"population": 23568378
},
"Tajikistan": {
"population": 9537645
},
"Tanzania": {
"population": 44928923
},
"Thailand": {
"population": 64785909
"population": 66558935
},
"Togo": {
"population": 7965055
"population": 8608444
},
"Trinidad and Tobago": {
"population": 1363985
"population": 1366725
},
"Tunisia": {
"population": 11722038
......@@ -548,43 +563,46 @@ var siteData = {
"population": 34634650
},
"Ukraine": {
"population": 42030832
"population": 41703327
},
"United Arab Emirates": {
"population": 9599353
"population": 9890400
},
"United Kingdom": {
"population": 67545757
"population": 67886004
},
"United States": {
"population": 328239523
},
"Uruguay": {
"population": 3390077
"population": 3518552
},
"Uzbekistan": {
"population": 33961708
"population": 33570609
},
"Vanuatu": {
"population": 307815
},
"Vatican City": {
"population": 1000
"population": 825
},
"Venezuela": {
"population": 28887118
},
"Vietnam": {
"population": 95545962
"population": 96208984
},
"Western Sahara": {
"population": 567402
},
"Yemen": {
"population": 28498683
"population": 19685000
},
"Zambia": {
"population": 13092666
},
"Zimbabwe": {
"population": 12973808
"population": 14215809
}
}
......@@ -918,11 +936,11 @@ let getSiteCases = (site) => {
*