-
Notifications
You must be signed in to change notification settings - Fork 2
/
data.js
200 lines (182 loc) · 26.1 KB
/
data.js
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
//Chart
$(function () {
'use strict'
var ticksStyle = {
fontColor: '#495057',
fontStyle: 'bold'
}
var data_labels = ['3/1','3/2','3/3','3/4','3/5','3/6','3/7','3/8','3/9','3/10','3/11','3/12','3/13','3/14','3/15','3/16','3/17','3/18','3/19','3/20','3/21','3/22','3/23','3/24','3/25','3/26','3/27','3/28','3/29','3/30','3/31','4/1','4/2','4/3','4/4','4/5','4/6','4/7','4/8','4/9','4/10','4/11','4/12','4/13','4/14','4/15','4/16','4/17','4/18','4/19','4/20','4/21','4/22','4/23','4/24','4/25','4/26','4/27','4/28','4/29','4/30','5/1','5/2','5/3','5/4','5/5','5/6','5/7','5/8','5/9','5/10','5/11','5/12','5/13','5/14','5/15','5/16','5/17','5/18','5/19','5/20','5/21','5/22','5/23','5/24','5/25','5/26','5/27','5/28','5/29','5/30','5/31','6/1','6/2','6/3','6/4','6/5','6/6','6/7','6/8','6/9','6/10','6/11','6/12','6/13','6/14','6/15','6/16','6/17','6/18','6/19','6/20','6/21','6/22','6/23','6/24','6/25','6/26','6/27','6/28','6/29','6/30','7/1','7/2','7/3','7/4','7/5','7/6','7/7','7/8','7/9','7/10','7/11','7/12','7/13','7/14','7/15','7/16','7/17','7/18','7/19','7/20','7/21','7/22','7/23','7/24','7/25','7/26','7/27','7/28','7/29','7/30','7/31','8/1','8/2','8/3','8/4','8/5','8/6','8/7','8/8','8/9','8/10','8/11','8/12','8/13','8/14','8/15','8/16','8/17','8/18','8/19','8/20','8/21','8/22','8/23','8/24','8/25','8/26','8/27','8/28','8/29','8/30','8/31','9/1','9/2','9/3','9/4','9/5','9/6','9/7','9/8','9/9','9/10','9/11','9/12','9/13','9/14','9/15','9/16','9/17','9/18','9/19','9/20','9/21','9/22','9/23','9/24','9/25','9/26','9/27','9/28','9/29','9/30','10/1','10/2','10/3','10/4','10/5','10/6','10/7','10/8','10/9','10/10','10/11','10/12','10/13','10/14','10/15','10/16','10/17','10/18','10/19','10/20','10/21','10/22','10/23','10/24','10/25','10/26','10/27','10/28','10/29','10/30','10/31','11/1','11/2','11/3','11/4','11/5','11/6','11/7','11/8','11/9','11/10','11/11','11/12','11/13','11/14','11/15','11/16','11/17','11/18','11/19','11/20','11/21','11/22','11/23','11/24','11/25','11/26','11/27','11/28','11/29','11/30','12/1','12/2','12/3','12/4','12/5','12/6','12/7','12/8','12/9','12/10','12/11','12/12','12/13','12/14','12/15','12/16','12/17','12/18','12/19','12/20','12/21','12/22','12/23','12/24','12/25','12/26','12/27','12/28','12/29','12/30','12/31','1/1','1/2','1/3','1/4','1/5','1/6','1/7','1/8','1/9','1/10','1/11','1/12','1/13','1/14','1/15','1/16','1/17','1/18','1/19','1/20','1/21','1/22','1/23','1/24','1/25','1/26','1/27','1/28','1/29','1/30','1/31','2/1','2/2','2/3','2/4','2/5','2/6','2/7','2/8','2/9','2/10','2/11','2/12','2/13','2/14','2/15','2/16','2/17','2/18','2/19','2/20','2/21','2/22','2/23','2/24','2/25','2/26','2/27','2/28','3/1','3/2','3/3','3/4','3/5','3/6','3/7','3/8','3/9','3/10','3/11','3/12','3/13','3/14','3/15','3/16','3/17','3/18','3/19','3/20','3/21','3/22','3/23','3/24','3/25','3/26','3/27','3/28','3/29','3/30','3/31','4/1','4/2','4/3','4/4','4/5','4/6','4/7','4/8','4/9','4/10','4/11','4/12','4/13','4/14','4/15','4/16','4/17','4/18','4/19','4/20','4/21','4/22','4/23','4/24','4/25','4/26','4/27','4/28','4/29','4/30','5/1','5/2','5/3','5/4','5/5','5/6','5/7','5/8','5/9','5/10','5/11','5/12','5/13','5/14','5/15','5/16','5/17','5/18','5/19','5/20','5/21','5/22','5/23','5/24','5/25','5/26','5/27','5/28','5/29','5/30','5/31','6/1','6/2','6/3','6/4','6/5','6/6','6/7','6/8','6/9','6/10','6/11','6/12','6/13','6/14','6/15','6/16','6/17','6/18','6/19','6/20','6/21','6/22','6/23','6/24','6/25','6/26','6/27','6/28','6/29','6/30','7/1','7/2','7/3','7/4','7/5','7/6','7/7','7/8','7/9','7/10','7/11','7/12','7/13','7/14','7/15','7/16','7/17','7/18','7/19','7/20','7/21','7/22','7/23','7/24','7/25','7/26','7/27','7/28','7/29','7/30','7/31','8/1','8/2','8/3','8/4','8/5','8/6','8/7','8/8','8/9','8/10','8/11','8/12','8/13','8/14','8/15','8/16','8/17','8/18','8/19','8/20','8/21','8/22','8/23','8/24','8/25','8/26','8/27','8/28','8/29','8/30','8/31'];
var data_akumulatif = [0,2,2,2,2,4,4,6,19,27,34,34,69,96,117,134,172,227,309,369,450,514,579,685,790,893,1046,1155,1285,1414,1528,1677,1790,1986,2092,2273,2491,2738,2956,3293,3512,3842,4241,4557,4839,5136,5516,5923,6248,6575,6760,7135,7418,7775,8211,8607,8882,9096,9511,9771,10118,10551,10843,11192,11587,12071,12438,12776,13112,13645,14032,14265,14749,15438,16006,16496,17025,17514,18010,18496,19189,20162,20796,21745,22271,22750,23165,23851,24538,25216,25773,26473,26940,27549,28233,28818,29521,30514,31186,32033,33076,34316,35295,36406,37420,38277,39294,40400,41431,42762,43803,45029,45891,46845,47896,49009,50187,51427,52812,54010,55092,56385,57770,59394,60695,62142,63749,64958,66226,68079,70736,72347,74018,75699,76981,78572,80094,81668,83130,84882,86521,88214,89869,91751,93657,95418,97286,98778,100303,102051,104432,106336,108376,109936,111455,113134,115056,116871,118753,121226,123503,125396,127083,128776,130718,132816,135123,137468,139549,141370,143043,144945,147211,149408,151498,153535,155412,157859,160165,162884,165887,169195,172053,174796,177571,180646,184268,187537,190665,194109,196989,200035,203342,207203,210940,214746,218382,221523,225030,228993,232628,236519,240687,244676,248852,252923,257388,262022,266845,271339,275213,278722,282724,287008,291182,295499,299506,303498,307120,311176,315714,320564,324658,328952,333449,336716,340622,344749,349160,353461,357762,361867,365240,368842,373109,377541,381910,385980,389712,392934,396454,400483,404048,406945,410088,412784,415402,418375,421731,425796,429574,433836,437716,440569,444348,448118,452291,457735,463007,467113,470648,474455,478720,483518,488310,493308,497668,502110,506302,511836,516753,522581,527999,534266,538883,543975,549508,557877,563680,569707,575796,581550,586842,592900,598933,605243,611631,617820,623309,629429,636154,643508,650197,657948,664930,671778,678125,685639,692838,700097,706837,713365,719219,727122,735124,743198,751270,758473,765350,772103,779548,788402,797723,808340,818386,828026,836718,846765,858043,869600,882418,896642,907929,917015,927380,939948,951651,965283,977474,989262,999256,1012350,1024298,1037993,1051795,1066313,1078314,1089308,1099687,1111671,1123105,1134854,1147010,1157837,1166079,1174779,1183555,1191990,1201859,1210703,1217468,1223930,1233959,1243646,1252685,1263299,1271353,1278653,1288833,1298608,1306141,1314634,1322866,1329074,1334634,1341314,1347026,1353834,1361098,1368069,1373836,1379662,1386556,1392945,1398578,1403722,1410134,1414741,1419455,1425044,1430458,1437283,1443853,1450132,1455788,1460184,1465928,1471225,1476452,1482559,1487541,1492002,1496085,1501093,1505775,1511712,1517854,1523179,1527524,1534255,1537967,1542516,1547376,1552880,1558145,1562868,1566995,1571824,1577526,1583182,1589359,1594722,1599763,1604348,1609300,1614849,1620569,1626812,1632248,1636792,1641194,1647138,1651794,1657035,1662868,1668368,1672880,1677274,1682004,1686373,1691658,1697305,1703632,1709762,1713684,1718575,1723596,1728204,1731652,1734285,1736670,1739750,1744045,1748230,1753101,1758898,1764644,1769940,1775220,1781127,1786187,1791221,1797499,1803361,1809926,1816041,1821703,1826527,1831773,1837126,1843612,1850206,1856038,1863031,1869325,1877050,1885942,1894025,1901490,1911358,1919547,1927708,1937652,1950276,1963266,1976172,1989909,2004445,2018113,2033421,2053995,2072867,2093962,2115304,2135998,2156465,2178272,2203108,2228938,2256851,2284084,2313829,2345018,2379397,2417788,2455912,2491006,2527203,2567630,2615529,2670046,2726803,2780803,2832755,2877476,2911733,2950058,2983830,3033339,3082410,3127826,3166505,3194733,3239936,3287727,3331206,3372374,3409658,3440396,3462800,3496700,3532567,3568331,3607863,3639616,3666031,3686740,3718821,3749446,3774155,3804943,3833541,3854354,3871738,3892479,3908247,3930300,3950304,3967048,3979456,3989060,4008166,4026837,4043736,4056354,4066404,4073831,4079267,4089801];
var data_kasus_harian = [0,2,0,0,0,2,0,2,13,8,7,0,35,27,21,17,38,55,82,60,81,64,65,106,105,103,153,109,130,129,114,149,113,196,106,181,218,247,218,337,219,330,399,316,282,297,380,407,325,327,185,375,283,357,436,396,275,214,415,260,347,433,292,349,395,484,367,338,336,533,387,233,484,689,568,490,529,489,496,486,693,973,634,949,526,479,415,686,687,678,557,700,467,609,684,585,703,993,672,847,1043,1240,979,1111,1014,857,1017,1106,1031,1331,1041,1226,862,954,1051,1113,1178,1240,1385,1198,1082,1293,1385,1624,1301,1447,1607,1209,1268,1853,2657,1611,1671,1681,1282,1591,1522,1574,1462,1752,1639,1693,1655,1882,1906,1761,1868,1492,1525,1748,2381,1904,2040,1560,1519,1679,1922,1815,1882,2473,2277,1893,1687,1693,1942,2098,2307,2345,2081,1821,1673,1902,2266,2197,2090,2037,1877,2447,2306,2719,3003,3308,2858,2743,2775,3075,3622,3269,3128,3444,2880,3046,3307,3861,3737,3806,3636,3141,3507,3963,3635,3891,4168,3989,4176,4071,4465,4634,4823,4494,3874,3509,4002,4284,4174,4317,4007,3992,3622,4056,4538,4850,4094,4294,4497,3267,3906,4127,4411,4301,4301,4105,3373,3602,4267,4432,4369,4070,3732,3222,3520,4029,3565,2897,3143,2696,2618,2973,3356,4065,3778,4262,3880,2853,3779,3770,4173,5444,5272,4106,3535,3807,4265,4798,4792,4998,4360,4442,4192,5534,4917,5828,5418,6267,4617,5092,5533,8369,5803,6027,6089,5754,5292,6058,6033,6310,6388,6189,5489,6120,6725,7354,6689,7751,6982,6848,6347,7514,7199,7259,6740,6528,5854,7903,8002,8074,8072,7203,6877,6753,7445,8854,9321,10617,10046,9640,8692,10047,11278,11557,12818,14224,11287,9086,10365,12568,11703,13632,12191,11788,9994,13094,11948,13695,13802,14518,12001,10994,10379,11984,11434,11749,12156,10827,8242,8700,8776,8435,9869,8844,6765,6462,10029,9687,9039,10614,8054,7300,10180,9775,7533,8493,8232,6208,5560,6680,5712,6808,7264,6971,5767,5826,6894,6389,5633,5144,6412,4607,4714,5589,5414,6825,6570,6279,5656,4396,5744,5297,5227,6107,4982,4461,4083,5008,4682,5937,6142,5325,4345,6731,3712,4549,4860,5504,5265,4723,4127,4829,5702,5656,6177,5363,5041,4585,4952,5549,5720,6243,5436,4544,4402,5944,4656,5241,5833,5500,4512,4394,4730,4369,5285,5647,6327,6130,3922,4891,5021,4608,3448,2633,2385,3080,4295,4185,4871,5797,5746,5296,5280,5907,5060,5034,6278,5862,6565,6115,5662,4824,5246,5353,6486,6594,5832,6993,6294,7725,8892,8083,7465,9868,8189,8161,9944,12624,12990,12906,13737,14536,13668,15308,20574,18872,21095,21342,20694,20467,21807,24836,25830,27913,27233,29745,31189,34379,38391,38124,35094,36197,40427,47899,54517,56757,54000,51952,44721,34257,38325,33772,49509,49071,45416,38679,28228,45203,47791,43479,41168,37284,30738,22404,33900,35867,35764,39532,31753,26415,20709,32081,30625,24709,30788,28598,20813,17384,20741,15768,22053,20004,16744,12408,9604,19106,18671,16899,12618,10050,7427,5436,10534];
var data_meninggal = [0,0,0,0,0,0,0,0,0,0,2,4,4,5,5,5,5,19,25,32,38,48,49,55,58,78,87,102,114,122,136,157,170,181,191,198,209,221,240,280,306,327,373,399,459,469,496,520,535,582,590,616,636,647,689,720,743,765,773,784,792,800,831,845,864,872,895,930,943,959,973,991,1007,1028,1043,1076,1089,1148,1191,1221,1242,1278,1326,1351,1372,1391,1418,1473,1496,1520,1573,1613,1641,1663,1698,1721,1770,1801,1851,1883,1923,1959,2000,2048,2091,2134,2198,2231,2276,2339,2373,2429,2465,2500,2535,2573,2620,2683,2720,2754,2805,2876,2934,2987,3036,3089,3171,3241,3309,3359,3417,3469,3535,3606,3656,3710,3797,3873,3957,4016,4143,4239,4320,4459,4576,4665,4714,4781,4838,4901,4975,5058,5131,5193,5236,5302,5388,5452,5521,5593,5658,5723,5765,5824,5903,5968,6021,6071,6150,6207,6277,6346,6418,6500,6594,6680,6759,6858,6944,7064,7169,7261,7343,7417,7505,7616,7750,7832,7940,8025,8130,8230,8336,8456,8544,8650,8723,8841,8965,9100,9222,9336,9448,9553,9677,9837,9977,10105,10218,10308,10386,10473,10601,10740,10856,10972,11055,11151,11253,11374,11472,11580,11677,11765,11844,11935,12027,12156,12268,12347,12431,12511,12617,12734,12857,12959,13077,13205,13299,13411,13512,13612,13701,13782,13869,13943,14044,14146,14259,14348,14442,14540,14614,14689,14761,14836,14933,15037,15148,15211,15296,15393,15503,15600,15678,15774,15884,16002,16111,16225,16352,16521,16646,16815,16945,17081,17199,17355,17479,17589,17740,17867,18000,18171,18336,18511,18653,18819,18956,19111,19248,19390,19514,19659,19880,20085,20257,20408,20589,20847,20994,21237,21452,21703,21944,22138,22329,22555,22734,22911,23109,23296,23520,23753,23947,24129,24343,24645,24951,25246,25484,25767,25987,26282,26590,26857,27203,27453,27664,27835,28132,28468,28855,29331,29518,29728,29998,30277,30581,30770,31001,31202,31393,31556,31763,31976,32167,32381,32656,32936,33183,33367,33596,33788,33969,34152,34316,34489,34691,35014,35254,35518,35786,35981,36166,36325,36518,36721,36897,37026,37154,37266,37547,37757,37932,38049,38229,38329,38426,38573,38753,38915,39142,39339,39447,39550,39711,39865,39983,40081,40166,40364,40449,40581,40754,40858,41054,41151,41242,41669,41815,41977,42064,42227,42348,42443,42530,42656,42782,42906,43073,43196,43328,43424,43567,43777,44007,44172,44346,44500,44594,44771,44939,45116,45334,45521,45652,45796,45949,46137,46349,46496,46663,46842,47012,47218,47465,47617,47716,47823,47967,48093,48305,48477,48669,48887,49073,49205,49328,49455,49627,49771,49907,50100,50262,50404,50578,50723,50908,51095,51296,51449,51612,51803,51992,52162,52373,52566,52730,52879,53116,53280,53476,53753,54043,54291,54662,54956,55291,55594,55949,56371,56729,57138,57561,58024,58491,58995,59534,60027,60582,61140,61868,62908,63760,64631,65457,66464,67355,68219,69210,70192,71397,72489,73582,74920,76200,77583,79032,80598,82013,83279,84766,86835,88659,90552,92311,94119,95723,97291,98889,100636,102375,104010,105598,107096,108571,110619,112198,113664,115096,116366,117588,118833,120013,121141,122633,123981,125342,126372,127214,128252,129293,130182,130781,131372,131923,132491,133023];
var data_sembuh = [0,0,0,0,0,0,0,0,0,0,2,3,5,8,8,8,9,11,15,16,20,29,30,30,31,35,46,59,64,75,81,103,112,134,150,164,192,204,222,252,282,286,359,380,426,446,548,607,631,686,747,842,913,960,1002,1042,1107,1151,1254,1391,1522,1591,1665,1876,1954,2197,2317,2381,2494,2607,2698,2881,3063,3287,3518,3803,3911,4129,4324,4467,4575,4838,5057,5249,5402,5642,5877,6057,6240,6492,7015,7308,7637,7935,8406,8892,9443,9907,10498,10904,11414,12129,12636,13213,13776,14531,15123,15703,16243,16798,17349,17883,18404,18735,19241,19658,20449,21333,21909,22936,23800,24806,25595,26667,27568,28219,29105,29919,30785,31585,32651,33529,34719,35638,36689,37636,39050,40345,41834,43268,45401,46977,48466,50261,52170,53951,55360,56661,58179,60539,62138,64292,65907,67919,68975,70237,72050,73889,75645,77557,79306,80952,82236,83710,85798,87558,89618,91321,93103,94458,96306,98657,100674,102991,105198,107500,111060,112867,115409,118575,120900,122802,124185,125959,128057,129971,132055,134181,136401,138575,140652,142958,145200,147510,150217,152458,155010,158405,161065,164101,166686,170774,174350,177327,180797,184298,187958,191853,196196,199403,203014,206870,210437,214947,218487,221340,225052,228453,232593,236437,240291,244060,247667,251481,255027,258519,263296,267851,273661,277544,281592,285324,289243,293653,297509,301006,305100,309219,313764,317672,322248,325793,329778,334295,337801,341942,345566,349497,353282,357142,360705,364417,368298,372266,375741,378982,382084,385094,388094,391991,395443,398636,402347,406612,410552,413955,418188,422386,425313,429807,433649,437456,441983,445793,450518,454879,458880,462553,466178,470449,474771,479202,483497,487445,491975,496886,501376,505836,510957,516656,521984,526979,531995,536260,541811,546884,552722,558703,563980,570304,576693,583676,589978,596783,603741,611097,617936,625518,631937,639103,645746,652513,659437,666883,673511,681024,688739,695807,703464,711205,718696,727358,736460,745935,753948,763703,772790,781147,791059,798810,809488,820356,831330,842122,852260,862502,873221,883682,896530,905665,917306,926980,939184,949990,963028,973452,982972,993117,1004117,1016036,1025273,1032065,1039674,1047676,1058222,1069005,1078840,1087076,1096994,1104990,1112725,1121411,1128672,1136054,1142703,1151915,1160863,1169916,1176356,1182687,1189510,1194656,1203381,1210877,1216433,1224603,1231454,1237470,1243117,1249947,1257663,1266673,1272958,1278965,1284725,1290790,1297967,1304921,1312543,1317199,1322878,1327121,1331400,1336818,1342695,1348330,1355578,1361017,1366214,1375877,1381677,1385973,1391742,1399382,1405659,1409288,1414507,1419796,1426145,1431892,1438254,1444229,1450192,1455065,1461414,1468142,1475456,1481449,1487369,1492322,1496126,1501715,1506599,1511417,1517432,1522634,1526978,1530718,1535491,1541149,1547092,1552532,1558423,1563917,1568277,1574615,1580207,1584878,1589079,1592886,1597067,1600857,1606611,1612239,1616603,1621572,1626142,1629495,1633045,1638279,1642074,1645263,1649187,1654557,1659974,1663998,1669119,1674479,1680501,1691593,1697543,1701784,1705971,1711565,1717370,1723253,1728914,1735144,1740436,1745091,1751234,1757641,1763870,1771220,1779127,1786143,1792528,1801761,1810136,1817303,1826504,1835061,1842457,1850481,1859961,1869606,1880413,1890287,1901865,1915147,1928274,1942690,1958553,1973388,1994573,2023548,2052109,2084724,2119478,2139601,2157363,2176412,2204491,2232394,2261658,2293875,2323666,2356553,2392923,2431911,2471678,2509318,2549692,2596820,2640676,2686170,2730720,2770092,2809538,2842345,2873669,2907920,2947646,2996478,3036194,3084702,3129661,3171147,3211078,3247715,3289718,3321598,3351959,3381884,3414109,3443903,3472915,3499037,3522048,3546324,3571082,3606164,3639867,3669966,3689256,3707850,3724318,3743716,3760497];
var data_aktif = [0,2,2,2,2,4,4,6,19,27,30,27,60,83,104,121,158,197,269,321,392,437,500,600,701,780,913,994,1107,1217,1311,1417,1508,1671,1751,1911,2090,2313,2494,2761,2924,3229,3509,3778,3954,4221,4472,4796,5082,5307,5423,5677,5869,6168,6520,6845,7032,7180,7484,7596,7804,8160,8347,8471,8769,9002,9226,9465,9675,10079,10361,10393,10679,11123,11445,11617,12025,12237,12495,12808,13372,14046,14413,15145,15497,15717,15870,16321,16802,17204,17185,17552,17662,17951,18129,18205,18308,18806,18837,19246,19739,20228,20659,21145,21553,21612,21973,22466,22912,23625,24081,24717,25022,25610,26120,26778,27118,27411,28183,28320,28487,28703,29241,29740,30091,30834,31473,31798,32132,33135,34668,35349,35764,36455,36636,37226,37247,37450,37339,37598,36977,36998,37083,37031,36911,36802,37212,37336,37286,36611,37319,36986,37338,36824,37244,37595,37618,37530,37587,38076,38539,38721,39082,39242,39017,39290,39484,40076,40296,40705,40460,39942,40119,39917,39706,39355,37593,38134,37812,37245,37818,39132,40525,41420,42009,43059,44463,45524,46324,47509,48207,48847,49806,51237,52179,53638,54649,54277,55000,55792,56720,56409,56889,57796,58378,58788,59453,60064,60431,61628,61813,61379,61686,61321,61839,63187,63399,63894,63274,63365,63951,64924,65314,65706,66578,66262,65299,64742,63231,63570,63739,64032,63380,62455,62743,63576,63733,63556,62649,61851,60694,61078,60569,58868,58418,56899,55792,54732,54190,54306,54427,54879,54804,53614,53846,54300,55274,57604,59765,59911,59909,60426,60870,61306,62080,63579,63596,63722,64878,65804,66752,68604,69370,71658,71420,72015,73429,77969,80023,81669,83285,84481,85345,87284,88622,89846,91602,93165,93396,93662,94922,97139,98688,102029,103239,104809,105146,106528,108269,108946,109150,108452,107789,108636,109439,109963,111005,110400,110679,110089,110693,112593,114766,117704,120928,122873,123636,126313,129628,133149,138238,143517,145482,144798,146842,149388,151658,156683,158751,162617,161636,163526,164113,166540,170017,174083,175095,175349,172576,175236,174798,176672,176433,176291,171288,169351,168416,166492,165086,161731,159012,158498,160689,162182,160494,160142,158197,157088,157148,158604,158162,157705,158408,157039,155765,153074,149645,147197,147845,148356,147172,147740,145628,144311,144213,141070,140451,138942,137912,136524,134042,131695,131753,131828,131616,129844,128250,126439,123926,125279,124497,124517,124236,123694,122326,122524,121222,121011,120068,116709,114475,114566,113570,111271,110138,111137,109958,109372,108599,108384,108032,107297,106243,105859,104319,102930,101106,101191,100533,99970,100474,100652,100256,100502,100102,100213,100250,100760,100564,99087,98217,98277,98546,99003,98395,96742,95924,95709,94857,93576,91636,90800,89129,87514,87829,88439,89429,91240,92847,93393,94486,96187,98405,98704,99690,101639,102006,101325,100364,94438,94773,96973,98455,99663,99963,101635,104655,106315,108324,113388,115197,116787,120306,125303,130096,135738,142719,147728,152686,160524,171542,181435,194776,207685,218476,228835,239368,253826,267539,281677,295228,309999,324597,343101,359455,367733,373440,376015,380797,407709,443473,480199,504915,527872,542236,542938,550192,549694,561384,569901,574135,573908,560275,556281,558392,554484,549343,545447,535135,523164,524142,524011,518310,507375,497824,474233,448508,437055,426170,412776,400129,395577,384807,371021,358357,343203,334752,327286,319658,306760,290764,273750,257677,243588,236317,227182,217590,203060,196281];
var mode = 'index'
var intersect = true
var $visitorsChart = $('#visitors-chart')
var visitorsChart = new Chart($visitorsChart, {
data : {
labels : data_labels,
datasets: [//{//akumulatif
// type : 'line',
// data : data_akumulatif,
// backgroundColor : 'transparent',
// borderColor : '#ffcc00',
// pointBorderColor : '#ffcc00',
// pointBackgroundColor: '#ffcc00',
// fill : false
// // pointHoverBackgroundColor: '#007bff',
// // pointHoverBorderColor : '#007bff'
// },
// {//meninggal
// type : 'bar',
// data : data_meninggal,
// backgroundColor : '#ff0000'
// },
// { //sembuh
// type : 'bar',
// data : data_sembuh,
// backgroundColor : '#02c248'
// },
{ //kasus harian
type : 'bar',
data : data_aktif,
backgroundColor : '#007bff'
}]
},
options: {
maintainAspectRatio: false,
tooltips : {
mode : mode,
intersect: intersect
},
hover : {
mode : mode,
intersect: intersect
},
legend : {
display: false
},
scales : {
yAxes: [{
// display: false,
stacked: true,
gridLines: {
display : true,
lineWidth : '4px',
color : 'rgba(0, 0, 0, .2)',
zeroLineColor: 'transparent'
},
ticks : $.extend({
beginAtZero : true,
suggestedMax: 20
}, ticksStyle)
}],
xAxes: [{
stacked: true,
display : true,
gridLines: {
display: false
},
ticks : ticksStyle
}]
}
}
})
})
//Peta Penyebaran
// Prepare demo data
// Data is joined to map using value of 'hc-key' property by default.
// See API docs for 'joinBy' for more info on linking data and map.
var data_Map_Indonesia = [
['id-jk',852389],['id-jr',694359],['id-jt',472651],['id-ji',386612],['id-ki',152428],['id-yo',151404],['id-bt',129657],['id-ri',124727],['id-ba',108304],['id-se',105690],['id-su',98822],['id-sb',87373],['id-ks',67013],['id-nt',60263],['id-sl',58312],['id-kr',52556],['id-bb',48169],['id-1024',47232],['id-kt',43764],['id-st',43562],['id-kb',37011],['id-ac',34139],['id-sw',32812],['id-ku',32756],['id-pa',32645],['id-ja',28609],['id-nb',26258],['id-be',22647],['id-ib',22494],['id-sg',19766],['id-ma',14346],['id-la',11823],['id-sr',11713],['id-go',11311],['id-3700',0]
]
// Create the chart
Highcharts.mapChart('containerMap', {
chart: {
map: 'countries/id/id-all'
},
title: {
text: 'Peta Persebaran Kasus Covid-19'
},
subtitle: {
text: 'Source map: <a href="http://code.highcharts.com/mapdata/countries/id/id-all.js">Indonesia</a>'
},
mapNavigation: {
enabled: true,
buttonOptions: {
verticalAlign: 'bottom'
}
},
colorAxis: {
dataClasses: [
{name:'<30000',from:10000,to:30000,color:'#ff8c00'},
{name:'<50000',from:30000,to:50000,color:'#ff6600'},
{name:'<80000',from:50000,to:80000,color:'#ff4000'},
{name:'<100000',from:80000,to:100000,color:'#ff0000'},
{name:'<150000',from:100000,to:150000,color:'#d90800'},
{name:'<250000',from:150000,to:250000,color:'#b20f00'},
{name:'<500000',from:250000,to:500000,color:'#8c1700'},
{name:'<1000000',from:500000,to:1000000,color:'#661f00'},
{name:'<5000000',from:1000000,to:5000000,color:'#402600'}
]
},
series: [{
data: data_Map_Indonesia,
name: 'Total Terinfeksi',
dataLabels: {
enabled: true,
format: '{point.name}'
}
}]
});
function arrayToTable(tableData) {
var table = $('<table id="tabel_k" class="table table-sm"></table>');
var tbody = $('<tbody></tbody>')
$(tableData).each(function (i, rowData) {
if(i == 0){
var thead = $('<thead></thead>');
var row = $('<tr></tr>');
$(rowData).each(function (j, cellData) {
if(j == 0){
row.append($('<th style="width: 200px">'+cellData+'</th>'));
}else{
row.append($('<th style="text-align:center;width: 150px">'+cellData+'</th>'));
}
});
thead.append(row);
table.append(thead);
}else{
var row = $('<tr></tr>');
$(rowData).each(function (j, cellData) {
if(j == 0){
row.append($('<td>'+cellData+'</td>'));
}else{
row.append($('<td style="text-align:center;">'+cellData+'</td>'));
}
});
}
tbody.append(row);
});
table.append(tbody);
return table;
}
$.ajax({
type: "GET",
dataType: "text",
url: "Indonesia Corona Cases - province_data.csv",
success: function (data) {
$('#tabel_kasus_provinsi').append(arrayToTable(Papa.parse(data).data));
}
});
//{"cases":740235,"deaths":35035,"recovered":156588,"updated":1585576778367,"active":548612}
$.getJSON('https://corona.lmao.ninja/v2/all', function(dataz) {
var world_cases_all = numberWithCommas(dataz.cases);
$("#world_cases_all").html(world_cases_all);
var world_cases_death = numberWithCommas(dataz.deaths);
$("#world_cases_death").html(world_cases_death);
var world_cases_recovered = numberWithCommas(dataz.recovered);
$("#world_cases_recovered").html(world_cases_recovered);
var world_cases_active = numberWithCommas(dataz.active);
$("#world_cases_active").html(world_cases_active);
});