Library of interesting videos to help us get educated to keep ourselves away from Corona and, also, smile in these difficult times. Thanks to the creators!
4 | Tracking Corona Virus Spread across different Indian states. Let's fight (Stay@Home) and defeat Corona every Single Day!
4 |
5 |
6 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
{{totalInfected}}
29 |
30 |
31 |
32 |
33 |
34 |
37 |
38 |
{{totalDischarged}}
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
50 |
51 |
{{totalDeath}}
52 |
53 |
54 |
55 |
56 |
57 |
58 |
61 |
62 |
{{totalActiveCases}}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
93 |
94 |
95 |
105 |
115 |
125 |
126 |
127 |
128 |
129 |
130 |
140 |
141 |
151 |
161 |
162 |
163 |
164 |
165 |
173 |
174 |
175 |
176 |
177 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
Covid-19 Indian States
194 |
195 |
196 |
States Helpline Number for coronavirus: For most of the states, the number is
104. If 104 does not work, click
here to look for specific numbers for different states.
197 |
198 |
199 |
200 |
208 |
209 |
210 |
211 |
212 |
222 |
223 |
224 |
225 |
235 |
245 |
246 |
247 |
248 |
260 |
292 |
293 |
North Zone (Delhi, Himachal Pradesh, Punjab, Haryana, J&K, Ladakhm, Chandigarh); East Zone (West bengal, Jharkhand, Bihar, Odisha, Assam, Tripura, Mizoram, Manipur); South Zone (Telangana, Andhra Pradesh, Kerala, Karnataka, Tamil Nadu); West Zone (Maharastra, Gujarat, Goa); Central Zone (Madhya Pradesh, Uttar Pradesh, Rajasthan, Uttarakhand, Chattisgarh)
294 |
295 |
Educate Yourself on Corona
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
318 |
Corona Fun - Stay @ Home, Stay Smiling
319 |
320 |
Library of interesting videos to help us smile in these difficult times. Thanks to the creators!
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
341 |
Covid-19 World
342 |
343 |
--------------------------------------------------------------------------------
/src/app/indian-states.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 |
3 | @Injectable({
4 | providedIn: 'root',
5 | })
6 |
7 |
8 | export class IndianStatesService {
9 |
10 | dailyConfirmedCases = [
11 | { data: [126, 224, 285, 329, 418, 497, 665, 764, 837, 918, 980, 1147, 1444, 1480, 1695, 1819, 2223, 2295,
12 | 2342, 2419, 2539, 2766, 2888, 3031, 3125, 3279, 3437, 3652, 3796, 4133, 4365, 4629, 4805, 4917, 5367, 6128, 6969, 7558, 8038, 8623, 9265, 9761, 10076, 10576, 10994, 11488, 11982, 12514, 12971, 14678], label: 'North Zone', fill: false },
13 | { data: [422, 493, 598, 799, 958, 1047, 1169, 1409, 1598, 1768, 1948, 2070, 2240, 2392, 2472, 2710, 2925, 3036,
14 | 3195, 3348, 3503, 3624, 3791, 4042, 4230, 4390, 4562, 4774, 4914, 5085, 5243, 5461, 5577, 5867, 6155, 6550, 6938, 7553, 8086, 8951, 9629, 10327, 10969, 11782, 12721, 13629, 14270, 14886, 15547, 15804], label: 'South', fill: false, borderColor: 'red' },
15 | { data: [35, 42, 55, 71, 86, 108, 134, 163, 167, 200, 215, 230, 267, 286, 304, 327, 374, 417,
16 | 440, 478, 518, 545, 598, 679, 730, 790, 890, 1007, 1087, 1171, 1321, 1389, 1439, 1525, 1588, 1743, 1834, 2162, 2283, 2415, 2585, 2846, 3042, 3400, 3619, 3850, 4194, 4441, 4619, 4991], label: 'East', fill: false },
17 | { data: [256, 289, 381, 427, 508, 521, 602, 619, 899, 1040, 1190, 1321, 1612, 1889, 2200, 2531, 2961, 3389,
18 | 3797, 4233, 4602, 5262, 6061, 6742, 7500, 8066, 9061, 9639, 10706, 11376, 12145, 13069, 14004, 14900, 16324, 17358, 18409, 20352, 21777, 23390, 24993, 26472, 28031, 30372, 31949, 33137, 35266, 37129, 39046, 41711], label: 'West', fill: false, borderColor: 'blue' },
19 | { data: [179, 218, 276, 318, 370, 418, 506, 623, 780, 863, 941, 1097, 1198, 1482, 1776, 1965, 2332, 2797,
20 | 2986, 3358, 3631, 3920, 4219, 4492, 4887, 5176, 5503, 5848, 6109, 6396, 6761, 7132, 7226, 7544, 7814, 8346, 8657, 9087, 9207, 9573, 9870, 10256, 10848, 11022, 11473, 11904, 12361, 13000, 13527, 14162], label: 'Central', fill: false },
21 | ];
22 |
23 |
24 | dailyRecoveredCases = [
25 | { data: [22, 28, 30, 33, 35, 38, 47, 58, 64, 73, 76, 77, 88, 88, 88, 106, 124, 138, 181, 198, 223, 281,
26 | 507, 711, 912, 1067, 1167, 1236, 1277, 1314, 1350, 1592, 1641, 1670, 1795, 1918, 2081, 2192, 2253, 2335, 2751, 2891, 2915, 3002, 3145, 3496, 4031, 4290, 4873, 6355], label: 'North Zone', fill: false },
27 | { data: [30, 31, 48, 51, 57, 64, 79, 102, 111, 128, 155, 174, 190, 259, 288, 410, 446, 514, 569, 740, 872, 968,
28 | 1088, 1162, 1415, 1479, 1638, 1788, 2000, 2079, 2247, 2414, 2467, 2609, 2820, 2991, 3135, 3407, 3490, 3734, 3856, 4046, 4371, 4586, 4780, 4984, 5241, 5375, 5824, 6895], label: 'South', fill: false },
29 | { data: [0, 0, 3, 3, 9, 10, 10, 12, 12, 15, 15, 19, 19, 19, 51, 68, 81, 85, 96, 114, 124, 137,
30 | 152, 162, 172, 188, 213, 214, 222, 241, 252, 272, 281, 314, 349, 383, 395, 472, 646, 697, 762, 825, 884, 977, 1088, 1247, 1366, 1506, 1617, 1754], label: 'East', fill: false },
31 | { data: [26, 35, 45, 45, 49, 52, 56, 60, 78, 81, 104, 142, 151, 219, 257, 269, 289, 323, 364, 380, 425, 465,
32 | 620, 710, 873, 975, 1105, 1229, 1365, 1508, 1683, 1829, 2127, 2393, 2621, 2903, 3164, 3667, 4207, 4601, 5017, 5349, 5898, 6751, 7573, 8378, 9116, 9819, 10606, 11403], label: 'West', fill: false, borderColor: 'blue' },
33 | { data: [16, 19, 24, 26, 26, 26, 45, 45, 54, 56, 61, 66, 67, 67, 81, 127, 248, 284, 305, 335, 371, 451,
34 | 476, 515, 588, 616, 691, 743, 1050, 1220, 1495, 1690, 1809, 1903, 2366, 2692, 2987, 3413, 3587, 3900, 4154, 4736, 5290, 5600, 5868, 6211, 6466, 6929, 7232, 7702], label: 'Central', fill: false },
35 | ];
36 |
37 | // 182 194 241 1674 460
38 | // 192 198 248 1760 474
39 |
40 | dailyDeathCases = [
41 | { data: [14, 16, 17, 17, 18, 22, 26, 32, 33, 38, 43, 48, 67, 51, 59, 64, 68, 70, 72, 72, 73, 75, 79, 81, 82, 83, 85, 87, 90, 93, 97, 99, 103, 106, 110, 113, 117, 126, 127, 129, 143, 165, 174, 182, 192], label: 'North Zone', fill: false },
42 | { data: [16, 16, 19, 21, 21, 24, 26, 29, 31, 33, 43, 49, 53, 62, 63, 64, 65, 75, 80, 85, 89, 96, 101, 102, 105, 105, 106, 109, 109, 113, 119, 125, 128, 131, 133, 138, 144, 152, 157, 163, 175, 183, 188, 194, 198], label: 'South', fill: false },
43 | { data: [4, 4, 4, 4, 5, 7, 7, 8, 9, 9, 12, 12, 13, 13, 16, 17, 19, 19, 19, 23, 23, 23, 26, 26, 28, 28, 30, 30, 41, 42, 43, 45, 143, 150, 155, 163, 172, 184, 200, 205, 213, 223, 231, 241, 248], label: 'East', fill: false },
44 | { data: [25, 28, 35, 57, 61, 77, 88, 114, 129, 149, 175, 186, 208, 223, 232, 249, 269, 290, 309, 346, 372, 395, 428, 456, 493, 531, 581, 629, 673, 721, 783, 838, 902, 985, 1047, 1119, 1180, 1251, 1325, 1381, 1458, 1541, 1605, 1674, 1705], label: 'West', fill: false, borderColor: 'blue' },
45 | { data: [10, 10, 10, 12, 19, 19, 23, 23, 40, 44, 51, 58, 67, 69, 82, 94, 98, 105, 121, 126, 129, 134, 145, 161, 178, 190, 206, 219, 234, 249, 264, 281, 306, 322, 338, 353, 368, 386, 397, 415, 425, 437, 451, 460, 474], label: 'Central', fill: false },
46 | ];
47 |
48 | dailyInfo = ['29/03', '30/03', '31/03', '01/04', '02/04', '03/04', '04/04',
49 | '05/04', '06/04', '07/04', '08/04', '09/04', '10/04', '11/04', '12/04', '13/04', '14/04', '15/04', '16/04', '17/04',
50 | '18/04', '19/04', '20/04', '21/04', '22/04', '23/04', '24/04', '25/04', '26/04', '27/04', '28/04', '29/04', '30/04', '01/05', '02/05', '03/05', '04/05', '05/05', '06/05', '07/05', '08/05', '09/05', '10/05', '11/05', '12/05', '13/05', '14/05', '15/05', '16/05', '17/05'];
51 | dailyDeathInfo = ['03/04', '04/04',
52 | '05/04', '06/04', '07/04', '08/04', '09/04', '10/04', '11/04', '12/04', '13/04', '14/04', '15/04', '16/04', '17/04',
53 | '18/04', '19/04', '20/04', '21/04', '22/04', '23/04', '24/04', '25/04', '26/04', '27/04', '28/04', '29/04', '30/04', '01/05', '02/05', '03/05', '04/05', '05/05', '06/05', '07/05', '08/05', '09/05', '10/05','11/05', '12/05', '13/05', '14/05', '15/05', '16/05', '17/05'];
54 |
55 | dailyMaharashtra = [193, 215, 302, 335, 416, 420, 490, 490, 748, 868, 1018, 1135, 1364, 1574, 1761, 1985, 2337,
56 | 2687, 2919, 3205, 3323, 3651, 4203, 4669, 5221, 5652, 6430, 6817, 7628, 8068, 8590, 9318, 9915, 10498, 11506, 12296, 12974, 14541, 15525, 16758, 17974, 19063, 20228, 22171];
57 | dailyMaharashtraRec = [1593, 1773, 1879, 2000, 2115, 2465, 2819, 3094, 3301, 3470, 3800, 4199]
58 | dailyMaharashtraDth = [432, 459, 485, 521, 548, 583, 617, 651, 694, 731, 779, 832]
59 | dailyKerala = [194, 234, 241, 265, 286, 286, 295, 306, 314, 327, 336, 345, 357, 364, 374, 376, 379,
60 | 387, 388, 395, 396, 400, 402, 408, 427, 438, 448, 451, 458, 469, 482, 486, 495, 497, 497, 500, 500, 500, 502, 503, 503, 503, 505, 512];
61 | dailyKeralaRec = [369, 383, 392, 400, 401, 462, 462, 469, 474, 484, 485, 489]
62 | dailyKeralaDth = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
63 | dailyUP = [75, 88, 101, 108, 121, 126, 174, 227, 305, 305, 343, 410, 431, 433, 452, 483, 657,
64 | 735, 773, 846, 969, 1084, 1176, 1294, 1412, 1509, 1604, 1778, 1843, 1955, 2033, 2115, 2134, 2203, 2328, 2626, 2742, 2859, 2880, 2998, 3071, 3214, 3373, 3467];
65 | dailyUPRec = [510, 513, 654, 698, 758, 944, 987, 1130, 1250, 1387, 1499, 1653]
66 | dailyUPDth = [39, 39, 42, 43, 45, 53, 56, 60, 62, 66, 74, 74]
67 | dailyKarnataka = [80, 88, 101, 110, 110, 124, 128, 144, 151, 175, 175, 181, 197, 214, 226, 247, 258,
68 | 277, 315, 353, 371, 384, 395, 415, 425, 443, 463, 489, 503, 511, 520, 535, 565, 589, 606, 642, 659, 671, 693, 705, 753, 794, 848];
69 | dailyKarnatakaRec = [216, 229, 392, 282, 304, 324, 331, 354, 366, 376, 386, 424]
70 | dailyKarnatakaDth = [21, 21, 22, 25, 26, 28, 29, 29, 30, 30, 30, 31]
71 | dailyDelhi = [53, 72, 120, 152, 219, 295, 445, 503, 523, 576, 576, 669, 898, 903, 1069, 1154, 1510,
72 | 1561, 1578, 1640, 1707, 1893, 2003, 2081, 2156, 2248, 2376, 2514, 2625, 2918, 3108, 3314, 3439, 3515, 3738, 4122, 4549, 4898, 5104, 5532, 5980, 6318, 6542, 6923];
73 | dailyDelhiRec = [1092, 1094, 1167, 1256, 1362, 1431, 1468, 1542, 1931, 2020, 2020, 2069]
74 | dailyDelhiDth = [56, 59, 61, 64, 64, 64, 64, 65, 66, 68, 73, 73]
75 | dailyTelangana = [69, 70, 77, 92, 97, 154, 159, 269, 321, 364, 427, 442, 473, 504, 504, 562, 624,
76 | 647, 698, 743, 791, 844, 873, 919, 945, 960, 984, 984, 991, 1002, 1004, 1012, 1012, 1038, 1039, 1063, 1082, 1085, 1096, 1107, 1123, 1133, 1163, 1196];
77 | dailyTelenganaRec = [367, 397, 441, 458, 490, 585, 585, 628, 650, 700, 750, 750]
78 | dailyTelenganaDth = [26, 26, 26, 28, 29, 29, 29, 29, 29, 29, 30, 30]
79 | dailyGujarat = [58, 69, 74, 87, 87, 88, 105, 122, 144, 165, 165, 179, 241, 308, 432, 539, 617,
80 | 695, 871, 1021, 1272, 1604, 1851, 2066, 2272, 2407, 2624, 2815, 3071, 3301, 3548, 3744, 4082, 4395, 4721, 5055, 5428, 5804, 6245, 6625, 7012, 7402, 7796, 8194];
81 | dailyGujaratRec = [527, 613, 735, 896, 1042, 1195, 1381, 1500, 1709, 1872, 2091, 2545]
82 | dailyGujaratDth = [197, 214, 236, 262, 290, 319, 368, 396, 425, 449, 472, 493]
83 | dailyTN = [50, 67, 124, 234, 309, 309, 411, 485, 571, 621, 690, 738, 834, 911, 969, 1075, 1173,
84 | 1204, 1242, 1267, 1323, 1372, 1477, 1520, 1596, 1629, 1683, 1755, 1821, 1885, 1937, 2058, 2162, 2323, 2526, 2757, 3023, 3550, 4058, 4829, 5409, 6009, 6535, 7204];
85 | dailyTNRec = [1210, 1258, 1312, 1341, 1379, 1409, 1485, 1516, 1547, 1605, 1824, 1959]
86 | dailyTNDth = [27, 27, 28, 29, 30, 31, 33, 35, 37, 40, 44, 47]
87 | dailyRajasthan = [57, 69, 93, 108, 133, 154, 200, 200, 274, 288, 328, 383, 463, 553, 700, 812, 879,
88 | 1005, 1023, 1131, 1229, 1351, 1478, 1576, 1801, 1890, 1964, 2034, 2083, 2185, 2262, 2364, 2438, 2584, 2666, 2772, 2886, 3061, 3158, 3317, 3427, 3579, 3706, 3814];
89 | dailyRajasthanRec = [769, 836, 1116, 1121, 1356, 1394, 1525, 1596, 1596, 1916, 2026, 2176]
90 | dailyRajasthanDth = [51, 58, 62, 65, 71, 77, 89, 92, 97, 101, 106, 107]
91 | dailyMP = [33, 47, 66, 86, 100, 107, 107, 165, 165, 229, 229, 259, 259, 443, 564, 604, 730,
92 | 987, 1120, 1308, 1355, 1407, 1485, 1540, 1592, 1695, 1852, 1952, 2096, 2168, 2368, 2561, 2561, 2660, 2719, 2846, 2942, 3049, 3049, 3138, 3252, 3341, 3641, 3614];
93 | dailyMPRec = [461, 482, 524, 798, 798, 1000, 1000, 1099, 1231, 1349, 1676, 1676]
94 | dailyMPDth = [129, 137, 145, 156, 165, 176, 176, 185, 193, 200, 215, 215]
95 | dailyJK = [31, 49, 55, 62, 70, 75, 92, 106, 109, 116, 116, 158, 184, 207, 224, 245, 270,
96 | 278, 300, 314, 328, 341, 350, 368, 380, 407, 427, 454, 494, 523, 546, 565, 581, 614, 639, 666, 701, 726, 741, 775, 793, 823, 836, 861];
97 | dailyJKRec = [192, 216, 247, 254, 287, 303, 320, 322, 335, 364, 368, 383]
98 | dailyJKDth = [8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9]
99 | dailyPunjab = [38, 39, 41, 44, 46, 46, 57, 57, 76, 91, 91, 101, 132, 132, 151, 167, 176,
100 | 186, 186, 186, 202, 219, 219, 245, 251, 277, 277, 298, 298, 313, 313, 322, 357, 357, 480, 772, 1102, 1233, 1451, 1516, 1644, 1731, 1762, 1823];
101 | dailyPunjabRec = [90, 90, 90, 112, 117, 128, 133, 135, 149, 152, 157, 166]
102 | dailyPunjabDth = [19, 19, 19, 20, 21, 23, 25, 27, 28, 29, 31, 31]
103 | dailyHaryana = [33, 35, 40, 40, 47, 47, 49, 59, 84, 90, 147, 169, 169, 177, 185, 185, 199,
104 | 199, 205, 205, 225, 233, 233, 254, 254, 262, 272, 272, 289, 289, 296, 310, 310, 313, 360, 394, 442, 517, 548, 594, 625, 647, 675, 703];
105 | dailyHaryanaRec = [209, 209, 227, 227, 245, 254, 256, 260, 260, 279, 290, 300]
106 | dailyHaryanaDth = [3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 10]
107 | dailyAP = [19, 23, 44, 87, 143, 161, 161, 190, 226, 266, 305, 348, 363, 381, 381, 432, 473,
108 | 503, 534, 572, 603, 603, 722, 757, 813, 895, 955, 1061, 1097, 1177, 1259, 1332, 1332, 1403, 1463, 1583, 1650, 1717, 1717, 1777, 1847, 1887, 1930, 1980];
109 | dailyAPRec = [287, 321, 403, 488, 524, 589, 589, 729,780, 842, 887, 925]
110 | dailyAPDth = [31, 31, 33, 33, 36, 36, 36, 36, 38, 41, 44, 45]
111 | dailyWB = [19, 22, 27, 27, 37, 37, 69, 80, 80, 91, 99, 103, 116, 126, 134, 152, 190,
112 | 213, 231, 255, 287, 310, 339, 392, 423, 456, 514, 571, 611, 649, 697, 725, 758, 795, 795, 922, 963, 1259, 1344, 1456, 1548, 1678, 1786, 1939];
113 | dailyWBRec = [124, 139, 139, 151, 151, 218, 364, 364, 364, 364, 372, 417]
114 | dailyWBDth = [22, 33, 33, 33, 35, 133, 140, 144, 151, 160, 171, 185]
115 | dailyBihar = [11, 15, 21, 24, 24, 29, 30, 30, 32, 32, 38, 39, 60, 60, 64, 64, 66,
116 | 70, 74, 83, 85, 86, 96, 114, 126, 148, 176, 228, 251, 277, 345, 383, 392, 418, 471, 482, 517, 529, 536, 542, 550, 571, 591, 696];
117 | dailyBiharRec = [65, 82, 98, 117, 125, 130, 142, 188, 246, 297, 322, 365]
118 | dailyBiharDth = [2, 2, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6]
119 | dailyOdisha = [3, 3, 3, 4, 4, 5, 5, 20, 21, 42, 42, 42, 44, 48, 54, 54, 55,
120 | 60, 60, 60, 60, 61, 68, 74, 82, 83, 90, 94, 103, 108, 118, 125, 149, 149, 160, 163, 170, 175, 185, 219, 271, 294, 377];
121 | dailyOdishaRec = [39, 39, 55, 56, 60, 60, 60, 61, 62, 63, 63, 68]
122 | dailyOdishaDth = [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3]
123 | dailyChandigarh = [28, 30, 30, 40, 56, 56, 88, 94, 94, 102, 111, 120, 135, 150, 169, 169];
124 | dailyChandigarhRec = [17, 17, 17, 19, 19, 21, 21, 21, 21, 21, 24, 24]
125 | dailyChandigarhDth = [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2]
126 | dailyChattisgarh = [36, 37, 37, 37, 38, 40, 43, 43, 57, 58, 59, 59, 59, 59, 59, 59];
127 | dailyChattisgarhRec = [34, 36, 36, 36, 36, 36, 36, 38, 38, 43, 49]
128 | dailyChattisgarhDth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
129 | dailyUttarakhand = [48, 50, 51, 51, 55, 57, 58, 59, 60, 60, 61, 61, 61, 63, 67, 68];
130 | dailyUttarakhandRec = [36, 36, 36, 39, 39, 39, 39, 39, 39, 46, 46, 46]
131 | dailyUttarakhandDth = [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]
132 | dailyGoa = [7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
133 | dailyGoaRec = [7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
134 | dailyGoaDth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
135 | dailyTripura = [2, 2, 2, 2, 2, 2, 4, 12, 29, 43, 43, 65, 118, 134, 150]
136 | dailyTripuraRec = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
137 | dailyTripuraDth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
138 | dailyManipur = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
139 | dailyManipurRec = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
140 | dailyManipurDth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
141 | dailyArunachalPradesh = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
142 | dailyArunachalPradeshRec = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
143 | dailyArunachalPradeshDth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
144 | dailyAssam = [36, 36, 36, 38, 38, 42, 43, 43, 43, 43, 43, 54, 59, 63, 63]
145 | dailyAssamRec = [29, 29,32, 32, 32, 32, 32, 32, 34, 34, 34, 34]
146 | dailyAssamDth = [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]
147 | dailyJharkhand = [125, 127, 132, 132, 156, 157]
148 | dailyJharkhandRec = [33, 37, 41, 52, 78, 78]
149 | dailyJharkhandDth = [3, 3, 3, 3, 3, 3]
150 | dailyPuducherry = [9, 9, 9, 9, 9, 9]
151 | dailyPuducherryRec = [6, 6, 6, 6, 6, 6]
152 | dailyPuducherryDth = [0, 0, 0, 0, 0, 0]
153 | dailyANMIslands = [33, 33, 33, 33, 33, 33]
154 | dailyANMIslandsRec = [32, 32, 33, 33, 33, 33]
155 | dailyANMIslandsDth = [0 ,0, 0, 0, 0, 0]
156 |
157 |
158 | dailyStates = [
159 | { data: this.dailyMaharashtra, label: 'Maharashtra', fill: false },
160 | { data: this.dailyKerala, label: 'Kerala', fill: false },
161 | { data: this.dailyUP, label: 'UP', fill: false },
162 | { data: this.dailyKarnataka, label: 'Karnataka', fill: false },
163 | { data: this.dailyDelhi, label: 'Delhi', fill: false },
164 | { data: this.dailyTelangana, label: 'Telangana', fill: false },
165 | { data: this.dailyGujarat, label: 'Gujarat', fill: false },
166 | { data: this.dailyTN, label: 'Tamilnadu', fill: false },
167 | { data: this.dailyRajasthan, label: 'Rajasthan', fill: false },
168 | { data: this.dailyMP, label: 'MP', fill: false },
169 | { data: this.dailyJK, label: 'J&K', fill: false },
170 | { data: this.dailyPunjab, label: 'Punjab', fill: false },
171 | { data: this.dailyHaryana, label: 'Haryana', fill: false },
172 | { data: this.dailyAP, label: 'AP', fill: false },
173 | { data: this.dailyWB, label: 'West Bengal' , fill: false},
174 | { data: this.dailyBihar, label: 'Bihar' , fill: false},
175 | { data: this.dailyOdisha, label: 'Odisha' , fill: false},
176 | ];
177 |
178 | dailyStatesRec = [
179 | { data: this.dailyMaharashtra, label: 'Maharashtra', fill: false, rec: this.dailyMaharashtraRec },
180 | { data: this.dailyKerala, label: 'Kerala', fill: false, rec: this.dailyKeralaRec },
181 | { data: this.dailyUP, label: 'UP', fill: false, rec: this.dailyUPRec },
182 | { data: this.dailyKarnataka, label: 'Karnataka', fill: false, rec: this.dailyKarnatakaRec },
183 | { data: this.dailyDelhi, label: 'Delhi', fill: false, rec: this.dailyDelhiRec },
184 | { data: this.dailyTelangana, label: 'Telangana', fill: false, rec: this.dailyTelenganaRec },
185 | { data: this.dailyGujarat, label: 'Gujarat', fill: false, rec: this.dailyGujaratRec },
186 | { data: this.dailyTN, label: 'Tamilnadu', fill: false, rec: this.dailyTNRec },
187 | { data: this.dailyRajasthan, label: 'Rajasthan', fill: false, rec: this.dailyRajasthanRec },
188 | { data: this.dailyMP, label: 'MP', fill: false, rec: this.dailyMPRec },
189 | { data: this.dailyJK, label: 'J&K', fill: false, rec: this.dailyJKRec },
190 | { data: this.dailyPunjab, label: 'Punjab', fill: false, rec: this.dailyPunjabRec },
191 | { data: this.dailyHaryana, label: 'Haryana', fill: false, rec: this.dailyHaryanaRec },
192 | { data: this.dailyAP, label: 'AP', fill: false, rec: this.dailyAPRec },
193 | { data: this.dailyWB, label: 'West Bengal' , fill: false, rec: this.dailyWBRec },
194 | { data: this.dailyBihar, label: 'Bihar' , fill: false, rec: this.dailyBiharRec },
195 | { data: this.dailyOdisha, label: 'Odisha' , fill: false, rec: this.dailyOdishaRec },
196 | { data: this.dailyChandigarh, label: 'Chandigarh' , fill: false, rec: this.dailyChandigarhRec },
197 | { data: this.dailyChattisgarh, label: 'Chattisgarh' , fill: false, rec: this.dailyChattisgarhRec },
198 | { data: this.dailyUttarakhand, label: 'Uttarakhand' , fill: false, rec: this.dailyUttarakhandRec },
199 | { data: this.dailyAssam, label: 'Assam' , fill: false, rec: this.dailyAssamRec },
200 | { data: this.dailyArunachalPradesh, label: 'Arunachal Pradesh' , fill: false, rec: this.dailyArunachalPradeshRec },
201 | { data: this.dailyGoa, label: 'Goa' , fill: false, rec: this.dailyGoaRec },
202 | { data: this.dailyTripura, label: 'Tripura' , fill: false, rec: this.dailyTripuraRec },
203 | { data: this.dailyManipur, label: 'Manipur' , fill: false, rec: this.dailyManipurRec },
204 | { data: this.dailyJharkhand, label: 'Jharkhand' , rec: this.dailyJharkhandRec },
205 | { data: this.dailyPuducherry, label: 'Puducherry' , rec: this.dailyPuducherryRec },
206 | { data: this.dailyANMIslands, label: 'Andaman & Nicobar Islands' , rec: this.dailyANMIslandsRec },
207 | ];
208 |
209 | dailyStatesDth = [
210 | { data: this.dailyMaharashtra, label: 'Maharashtra', fill: false, dth: this.dailyMaharashtraDth },
211 | { data: this.dailyKerala, label: 'Kerala', fill: false, dth: this.dailyKeralaDth },
212 | { data: this.dailyUP, label: 'UP', fill: false, dth: this.dailyUPDth },
213 | { data: this.dailyKarnataka, label: 'Karnataka', fill: false, dth: this.dailyKarnatakaDth },
214 | { data: this.dailyDelhi, label: 'Delhi', fill: false, dth: this.dailyDelhiDth },
215 | { data: this.dailyTelangana, label: 'Telangana', dth: this.dailyTelenganaDth },
216 | { data: this.dailyGujarat, label: 'Gujarat', dth: this.dailyGujaratDth },
217 | { data: this.dailyTN, label: 'Tamilnadu', dth: this.dailyTNDth },
218 | { data: this.dailyRajasthan, label: 'Rajasthan', dth: this.dailyRajasthanDth },
219 | { data: this.dailyMP, label: 'MP', fill: false, dth: this.dailyMPDth },
220 | { data: this.dailyJK, label: 'J&K', fill: false, dth: this.dailyJKDth },
221 | { data: this.dailyPunjab, label: 'Punjab', fill: false, dth: this.dailyPunjabDth },
222 | { data: this.dailyHaryana, label: 'Haryana', fill: false, dth: this.dailyHaryanaDth },
223 | { data: this.dailyAP, label: 'AP', fill: false, dth: this.dailyAPDth },
224 | { data: this.dailyWB, label: 'West Bengal' , fill: false, dth: this.dailyWBDth },
225 | { data: this.dailyBihar, label: 'Bihar' , fill: false, dth: this.dailyBiharDth },
226 | { data: this.dailyOdisha, label: 'Odisha' , fill: false, dth: this.dailyOdishaDth },
227 | { data: this.dailyChandigarh, label: 'Chandigarh' , fill: false, dth: this.dailyChandigarhDth },
228 | { data: this.dailyChattisgarh, label: 'Chattisgarh' , fill: false, dth: this.dailyChattisgarhDth },
229 | { data: this.dailyUttarakhand, label: 'Uttarakhand' , fill: false, dth: this.dailyUttarakhandDth },
230 | { data: this.dailyAssam, label: 'Assam' , fill: false, dth: this.dailyAssamDth },
231 | { data: this.dailyJharkhand, label: 'Jharkhand' , dth: this.dailyJharkhandDth },
232 | { data: this.dailyPuducherry, label: 'Puducherry' , dth: this.dailyPuducherryDth },
233 | { data: this.dailyANMIslands, label: 'Andaman & Nicobar Islands' , dth: this.dailyANMIslandsDth },
234 | ];
235 |
236 | // statesName = ['Maharasthra', 'Kerala', 'UP', 'Karnataka', 'Delhi', 'Telangana', 'Gujarat', 'Tamilnadu', 'Rajasthan',
237 | // 'MP', 'J&K', 'Punjab', 'Haryana', 'AP', 'West Bengal', 'Bihar', 'Odisha'];
238 |
239 | constructor() { }
240 |
241 | getDailyInfo() {
242 | return this.dailyInfo
243 | }
244 |
245 | getDailyDeathInfo() {
246 | return this.dailyDeathInfo
247 | }
248 |
249 | getDailyConfirmedCases() {
250 | return this.dailyConfirmedCases
251 | }
252 |
253 | getDailyRecoveredCases() {
254 | return this.dailyRecoveredCases
255 | }
256 |
257 | getDailyDeathCases() {
258 | return this.dailyDeathCases
259 | }
260 |
261 | getDailyStatesConfirmedCases() {
262 | return this.dailyStates
263 | }
264 |
265 | getDailyStatesConfirmedCasesMultiSelect() {
266 | var dailyStatesMS = [];
267 | for(var i = 0; i < this.dailyStates.length; i++) {
268 | var arr = [];
269 | arr['data'] = this.dailyStates[i].data
270 | arr['label'] = this.dailyStates[i].label
271 | arr['item_id'] = i+1
272 | arr['item_text'] = this.dailyStates[i].label
273 |
274 | dailyStatesMS.push(arr)
275 | }
276 | return dailyStatesMS
277 | }
278 |
279 | getDailyStatesConfirmedCasesByState(state) {
280 | for(var i = 0; i < this.dailyStates.length; i++) {
281 | if(this.dailyStates[i].label == state) {
282 | return this.dailyStates[i]
283 | }
284 | }
285 | }
286 |
287 | getLatestStatewiseConfirmedCases() {
288 | var latestStatewiseCases = [];
289 | for(var i = 0; i < this.dailyStates.length; i++) {
290 | var arr = [];
291 | arr[0] = this.dailyStates[i].label
292 | arr[1] = this.dailyStates[i].data[this.dailyStates[i].data.length - 1]
293 | latestStatewiseCases.push(arr)
294 | }
295 | return latestStatewiseCases
296 | }
297 |
298 | getLatestStatewiseConfirmedCasesCount() {
299 | var latestStatewiseCases = [];
300 | for(var i = 0; i < this.dailyStates.length; i++) {
301 | latestStatewiseCases.push(this.dailyStates[i].data[this.dailyStates[i].data.length - 1])
302 | }
303 | return latestStatewiseCases
304 | }
305 |
306 | getStatesName() {
307 | var states = [];
308 | for(var i = 0; i < this.dailyStates.length; i++) {
309 | states.push(this.dailyStates[i].label)
310 | }
311 | return states
312 | }
313 |
314 | getDailyInfoForState() {
315 | var dailyInfoForState = [];
316 | for(var i = 1; i < this.dailyInfo.length; i++) {
317 | dailyInfoForState.push(this.dailyInfo[i])
318 | }
319 | return dailyInfoForState
320 | }
321 |
322 | getDailyConfirmedCasesByState(state) {
323 | var currState = {};
324 | var currStateData = [];
325 | for(var i = 0; i < this.dailyStates.length; i++) {
326 | if(this.dailyStates[i].label == state) {
327 | currState = this.dailyStates[i]
328 | currStateData = this.dailyStates[i].data
329 | }
330 | }
331 | var dailyConfirmedCases = [];
332 | for(var i = 0; i < currStateData.length; i++) {
333 | if (i < currStateData.length - 1) {
334 | var change = currStateData[i+1] - currStateData[i]
335 | dailyConfirmedCases.push(change)
336 | }
337 | }
338 | return dailyConfirmedCases
339 | }
340 |
341 | getDailyROCByState(state) {
342 | var dailyROC = [];
343 | var currState = {};
344 | var currStateData = [];
345 | for(var i = 0; i < this.dailyStates.length; i++) {
346 | if(this.dailyStates[i].label == state) {
347 | currState = this.dailyStates[i]
348 | currStateData = this.dailyStates[i].data
349 | }
350 | }
351 |
352 | for (var i = 0; i < currStateData.length; i++) {
353 | if (i < currStateData.length - 1) {
354 | var roc = Math.round(((currStateData[i+1]/currStateData[i]) - 1)*100)
355 | dailyROC.push(roc)
356 | }
357 | }
358 | return dailyROC
359 | }
360 |
361 | getRecoveryStatusForStates() {
362 | var dailyROC = [];
363 | var dailyROCWithStates = [];
364 | var dailyStatusForStates = [];
365 | var dailyStatusLabels = [];
366 | for(var i = 0; i < this.dailyStatesRec.length; i++) {
367 | var rcstatus = Math.round((this.dailyStatesRec[i].rec[this.dailyStatesRec[i].rec.length - 1]/this.dailyStatesRec[i].data[this.dailyStatesRec[i].data.length - 1])*100)
368 | dailyROCWithStates.push({rcstatus: rcstatus, label: this.dailyStatesRec[i].label})
369 | }
370 | // dailyROCWithStates = this._sortDailyROCWithStates(dailyROCWithStates);
371 | dailyROCWithStates.sort(this._compare)
372 | for(var i = 0; i < dailyROCWithStates.length; i++) {
373 | dailyStatusForStates.push(dailyROCWithStates[i].rcstatus)
374 | dailyStatusLabels.push(dailyROCWithStates[i].label)
375 | }
376 |
377 | dailyROC.push(dailyStatusForStates)
378 | dailyROC.push(dailyStatusLabels)
379 |
380 | return dailyROC
381 | }
382 |
383 | _sortDailyROCWithStates(drws) {
384 | var dailyROCWithStates = drws
385 |
386 | return dailyROCWithStates;
387 | }
388 |
389 | _compare(obj1, obj2) {
390 | if (obj1.rcstatus > obj2.rcstatus) return 1;
391 | if (obj2.rcstatus > obj1.rcstatus) return -1;
392 |
393 | return 0;
394 | }
395 |
396 | getCumulativeDeathForStates() {
397 | var dailyDth = [];
398 | var dailyDthWithStates = [];
399 | var dailyStatusForStates = [];
400 | var dailyStatusLabels = [];
401 | for(var i = 0; i < this.dailyStatesDth.length; i++) {
402 | dailyDthWithStates.push({data: this.dailyStatesDth[i].dth, label: this.dailyStatesDth[i].label})
403 | }
404 | dailyDthWithStates.sort(this._compareDeaths)
405 | for(var i = 0; i < dailyDthWithStates.length; i++) {
406 | console.log("Data: " + dailyDthWithStates[i].data[dailyDthWithStates[i].data.length - 1])
407 | dailyStatusForStates.push(dailyDthWithStates[i].data[dailyDthWithStates[i].data.length - 1])
408 | dailyStatusLabels.push(dailyDthWithStates[i].label)
409 | }
410 |
411 | dailyDth.push(dailyStatusForStates)
412 | dailyDth.push(dailyStatusLabels)
413 |
414 | return dailyDth
415 | }
416 |
417 | _compareDeaths(obj1, obj2) {
418 | if (obj1.data[obj1.data.length - 1] > obj2.data[obj2.data.length - 1] ) return 1;
419 | if (obj2.data[obj2.data.length - 1] > obj1.data[obj1.data.length - 1] ) return -1;
420 |
421 | return 0;
422 | }
423 |
424 | }
--------------------------------------------------------------------------------