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 ...@@ -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. - 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. 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)) - 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 = { ...@@ -17,16 +17,16 @@ var siteData = {
"population": 32225560 "population": 32225560
}, },
"Albania": { "Albania": {
"population": 2876591 "population": 2845955
}, },
"Algeria": { "Algeria": {
"population": 43000000 "population": 43900000
}, },
"Andorra": { "Andorra": {
"population": 76177 "population": 77543
}, },
"Angola": { "Angola": {
"population": 25789024 "population": 31127674
}, },
"Antigua and Barbuda": { "Antigua and Barbuda": {
"population": 81799 "population": 81799
...@@ -35,7 +35,7 @@ var siteData = { ...@@ -35,7 +35,7 @@ var siteData = {
"population": 44938712 "population": 44938712
}, },
"Armenia": { "Armenia": {
"population": 3018854 "population": 2956900
}, },
"Australia": { "Australia": {
"population": 23401892 "population": 23401892
...@@ -44,7 +44,7 @@ var siteData = { ...@@ -44,7 +44,7 @@ var siteData = {
"population": 8902600 "population": 8902600
}, },
"Azerbaijan": { "Azerbaijan": {
"population": 10027874 "population": 10127874
}, },
"Bahamas": { "Bahamas": {
"population": 351461 "population": 351461
...@@ -56,61 +56,61 @@ var siteData = { ...@@ -56,61 +56,61 @@ var siteData = {
"population": 149772364 "population": 149772364
}, },
"Barbados": { "Barbados": {
"population": 277821 "population": 287025
}, },
"Belarus": { "Belarus": {
"population": 9491800 "population": 9408400
}, },
"Belgium": { "Belgium": {
"population": 11515793 "population": 11492641
}, },
"Belize": { "Belize": {
"population": 408487 "population": 408487
}, },
"Benin": { "Benin": {
"population": 10008749 "population": 11733059
}, },
"Bhutan": { "Bhutan": {
"population": 741700 "population": 727145
}, },
"Bolivia": { "Bolivia": {
"population": 11428245 "population": 11428245
}, },
"Bosnia and Herzegovina": { "Bosnia and Herzegovina": {
"population": 3511372 "population": 3301000
}, },
"Botswana": { "Botswana": {
"population": 2254068 "population": 2024904
}, },
"Brazil": { "Brazil": {
"population": 210147125 "population": 210147125
}, },
"Brunei": { "Brunei": {
"population": 442400 "population": 459500
}, },
"Bulgaria": { "Bulgaria": {
"population": 7000039 "population": 6951482
}, },
"Burkina Faso": { "Burkina Faso": {
"population": 20107509 "population": 21510181
}, },
"Burundi": { "Burundi": {
"population": 11745876 "population": 11865821
}, },
"Cambodia": { "Cambodia": {
"population": 15288489 "population": 15288489
}, },
"Cameroon": { "Cameroon": {
"population": 17463836 "population": 26545864
}, },
"Canada": { "Canada": {
"population": 37894799 "population": 38005238
}, },
"Cabo Verde": { "Cabo Verde": {
"population": 543767 "population": 543767
}, },
"Central African Republic": { "Central African Republic": {
"population": 4987640 "population": 3895139
}, },
"Chad": { "Chad": {
"population": 13670084 "population": 13670084
...@@ -119,34 +119,37 @@ var siteData = { ...@@ -119,34 +119,37 @@ var siteData = {
"population": 17574003 "population": 17574003
}, },
"China": { "China": {
"population": 1339724852 "population": 1400050000
}, },
"Colombia": { "Colombia": {
"population": 50372424 "population": 50372424
}, },
"Comoros": {
"population": 850688
},
"Congo (Brazzaville)": { "Congo (Brazzaville)": {
"population": 5244359 "population": 5244359
}, },
"Congo (Kinshasa)": { "Congo (Kinshasa)": {
"population": 91931000 "population": 101780263
}, },
"Costa Rica": { "Costa Rica": {
"population": 4999441 "population": 4999441
}, },
"Croatia": { "Croatia": {
"population": 4076246 "population": 4058165
}, },
"Cuba": { "Cuba": {
"population": 11209628 "population": 11193470
}, },
"Cyprus": { "Cyprus": {
"population": 838897 "population": 838897
}, },
"Czechia": { "Czechia": {
"population": 10649800 "population": 10693939
}, },
"Denmark": { "Denmark": {
"population": 5822763 "population": 5837213
}, },
"Diamond Princess": { "Diamond Princess": {
"population": 3711 "population": 3711
...@@ -158,7 +161,7 @@ var siteData = { ...@@ -158,7 +161,7 @@ var siteData = {
"population": 71293 "population": 71293
}, },
"Dominican Republic": { "Dominican Republic": {
"population": 10735896 "population": 10878246
}, },
"East Timor": { "East Timor": {
"population": 1183643 "population": 1183643
...@@ -173,13 +176,13 @@ var siteData = { ...@@ -173,13 +176,13 @@ var siteData = {
"population": 6420746 "population": 6420746
}, },
"Equatorial Guinea": { "Equatorial Guinea": {
"population": 1222442 "population": 1454789
}, },
"Eritrea": { "Eritrea": {
"population": 5750433 "population": 6081196
}, },
"Estonia": { "Estonia": {
"population": 1328360 "population": 1328976
}, },
"Eswatini": { "Eswatini": {
"population": 1093238 "population": 1093238
...@@ -191,28 +194,28 @@ var siteData = { ...@@ -191,28 +194,28 @@ var siteData = {
"population": 926276 "population": 926276
}, },
"Finland": { "Finland": {
"population": 5521158 "population": 5528737
}, },
"France": { "France": {
"population": 67022000 "population": 67081000
}, },
"Gabon": { "Gabon": {
"population": 2119275 "population": 2119275
}, },
"Gambia": { "Gambia": {
"population": 2051363 "population": 2173999
}, },
"Georgia": { "Georgia": {
"population": 3723464 "population": 3716858
}, },
"Germany": { "Germany": {
"population": 83149300 "population": 83166711
}, },
"Ghana": { "Ghana": {
"population": 31072940 "population": 31072940
}, },
"Greece": { "Greece": {
"population": 10768477 "population": 10724599
}, },
"Grenada": { "Grenada": {
"population": 111454 "population": 111454
...@@ -227,28 +230,28 @@ var siteData = { ...@@ -227,28 +230,28 @@ var siteData = {
// "population": 63026 // "population": 63026
// }, // },
"Guinea": { "Guinea": {
"population": 11628972 "population": 11523261
}, },
"Guyana": { "Guyana": {
"population": 786391 "population": 786391
}, },
"Haiti": { "Haiti": {
"population": 11123178 "population": 11439646
}, },
"Honduras": { "Honduras": {
"population": 8303771 "population": 8303771
}, },
"Hong Kong": { "Hong Kong": {
"population": 7482500 "population": 7500700
}, },
"Hungary": { "Hungary": {
"population": 9772756 "population": 9769526
}, },
"Iceland": { "Iceland": {
"population": 364260 "population": 364134
}, },
"Ireland": { "Ireland": {
"population": 4921500 "population": 4977400
}, },
"India": { "India": {
"population": 1210854977 "population": 1210854977
...@@ -269,109 +272,115 @@ var siteData = { ...@@ -269,109 +272,115 @@ var siteData = {
"population": 7412200 "population": 7412200
}, },
"Italy": { "Italy": {
"population": 60317546 "population": 60317116
}, },
"Ivory Coast": { "Ivory Coast": {
"population": 23740424 "population": 26378274
}, },
"Jamaica": { "Jamaica": {
"population": 2890299 "population": 2726667
}, },
"Japan": { "Japan": {
"population": 126150000 "population": 125960000
}, },
// "Jersey": { // "Jersey": {
// "population": 106800 // "population": 106800
// }, // },
"Jordan": { "Jordan": {
"population": 10407793 "population": 10658123
}, },
"Kazakhstan": { "Kazakhstan": {
"population": 18448600 "population": 18711200
}, },
"Kenya": { "Kenya": {
"population": 47564296 "population": 47564296
}, },
"Kosovo": { "Kosovo": {
"population": 1810463 "population": 1873160
}, },
"Kuwait": { "Kuwait": {
"population": 4621638 "population": 4420110
}, },
"Kyrgyzstan": { "Kyrgyzstan": {
"population": 6389500 "population": 6586600
}, },
"Laos": { "Laos": {
"population": 7096376 "population": 7123205
}, },
"Latvia": { "Latvia": {
"population": 1919968 "population": 1907675
}, },
"Lebanon": { "Lebanon": {
"population": 6859408 "population": 6859408
}, },
"Lesotho": {
"population": 2142249
},
"Liberia": { "Liberia": {
"population": 4809768 "population": 5073296
}, },
"Libya": { "Libya": {
"population": 6653210 "population": 6871287
}, },
"Liechtenstein": { "Liechtenstein": {
"population": 38557 "population": 38749
}, },
"Lithuania": { "Lithuania": {
"population": 2794329 "population": 2795334
}, },
"Luxembourg": { "Luxembourg": {
"population": 613894 "population": 626108
}, },
"Macau": { "Macau": {
"population": 667400 "population": 696100
}, },
"Madagascar": { "Madagascar": {
"population": 26262313 "population": 26262313
}, },
"Malaysia": { "Malaysia": {
"population": 32772100 "population": 32730000
}, },
"Malawi": { "Malawi": {
"population": 18143217 "population": 19129952
}, },
"Maldives": { "Maldives": {
"population": 392473 "population": 379270
}, },
"Mali": { "Mali": {
"population": 19329841 "population": 20250833
}, },
"Malta": { "Malta": {
"population": 493559 "population": 514564
},
"Marshall Islands": {
"population": 53158
}, },
"Mauritania": { "Mauritania": {
"population": 3537368 "population": 3537368
}, },
"Mauritius": { "Mauritius": {
"population": 1265985 "population": 1265475
}, },
"Mexico": { "Mexico": {
"population": 126577691 "population": 128649565
}, },
"Moldova": { "Moldova": {
"population": 2681735 "population": 2640438
}, },
"Monaco": { "Monaco": {
"population": 38300 "population": 38300
}, },
"Mongolia": { "Mongolia": {
"population": 3278290 "population": 3353470
}, },
"Montenegro": { "Montenegro": {
"population": 631219 "population": 622359
}, },
"Morocco": { "Morocco": {
"population": 35581294 "population": 37037908
}, },
"Mozambique": { "Mozambique": {
"population": 27909798 "population": 30066648
}, },
"MS Zaandam": { "MS Zaandam": {
"population": 1829 "population": 1829
...@@ -380,25 +389,25 @@ var siteData = { ...@@ -380,25 +389,25 @@ var siteData = {
"population": 53582855 "population": 53582855
}, },
"Namibia": { "Namibia": {
"population": 2606971 "population": 2746745
}, },
"Nepal": { "Nepal": {
"population": 26494504 "population": 26494504
}, },
"Netherlands": { "Netherlands": {
"population": 17424978 "population": 17418808
}, },
"New Zealand": { "New Zealand": {
"population": 4977520 "population": 0
}, },
"Nicaragua": { "Nicaragua": {
"population": 6167237 "population": 6486201
}, },
"Niger": { "Niger": {
"population": 17138707 "population": 17138707
}, },
"Nigeria": { "Nigeria": {
"population": 204630242 "population": 206630269
}, },
"North Macedonia": { "North Macedonia": {
"population": 2077132 "population": 2077132
...@@ -413,40 +422,40 @@ var siteData = { ...@@ -413,40 +422,40 @@ var siteData = {
"population": 2773479 "population": 2773479
}, },
"Pakistan": { "Pakistan": {
"population": 212228286