0%

vscode theme 2022

数据来源:

https://data.cdc.gov/NCHS/Provisional-COVID-19-Deaths-by-Sex-and-Age/9bhg-hcku

temp1 是第一个 td(Age Group)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var td = $(temp1);
var table = td.closest('table')
var n = td.index()
var rs = []

table.find('tr').each((a,b)=>{
console.log(b)
let td1 = $(b).find('td:eq('+n+')');
let td2 = $(b).find('td:eq('+(n+1)+')');
//console.log(td1,td2)
let t1 = $.trim($(td1).text())
let t2 = $.trim($(td2).text())
console.log(t1,t2)
rs.push({
t:t1,
v:t2
})
})

美国 covid 死亡人数

美国人口 3.319 亿 (2021 年)

从 2020-01-01 到 2022-11-26

  • 各种原因死亡人数: 9,691,052
  • 新冠:1,073,957
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[
{
"t": "All Ages 各年龄段总数",
"v": "1,073,957"
},
{
"t": "Under 1 year",
"v": "385"
},
{
"t": "0-17 years",
"v": "1,372"
},
{
"t": "1-4 years",
"v": "208"
},
{
"t": "5-14 years",
"v": "428"
},
{
"t": "15-24 years",
"v": "2,858"
},
{
"t": "18-29 years",
"v": "6,688"
},
{
"t": "25-34 years",
"v": "11,870"
},
{
"t": "30-39 years",
"v": "19,136"
},
{
"t": "35-44 years",
"v": "29,076"
},
{
"t": "40-49 years",
"v": "44,856"
},
{
"t": "45-54 years",
"v": "69,339"
},
{
"t": "50-64 years",
"v": "196,036"
},
{
"t": "55-64 years",
"v": "153,924"
},
{
"t": "65-74 years",
"v": "243,622"
},
{
"t": "75-84 years",
"v": "278,544"
},
{
"t": "85 years and over",
"v": "283,703"
}
]
1
2
3
4
5
6
7
let total = rs.reduce((pre,a)=>{    
return a.v.replace(/,/g,'')*1 + pre
},0)

rs.forEach((a)=>{
a.percent = (a.v.replace(/,/g,'')*100/ total).toFixed(3) + '%'
})

对比参考

  • 中国人口:14.12 亿 (2021 年)
  • 2021年 死亡 1014万人 死亡率为7.18‰