-
Notifications
You must be signed in to change notification settings - Fork 51
/
india.html
1125 lines (969 loc) · 50.4 KB
/
india.html
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="authors" content="Bo Zhao, Fengyu Xu, Lola Kang, Joshua Ji, and Steven Bao">
<!-- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> -->
<title>Novel Coronavirus Infection Map</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="css/MarkerCluster.Default.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<link href="https://fonts.googleapis.com/css?family=Titillium+Web" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald&display=swap" rel="stylesheet">
<link href="css/c3.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/simplebar.css" />
<link rel="stylesheet" href="css/main.css">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<script src="js/d3.js"></script>
<script src="js/c3.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="js/leaflet.markercluster.js"></script>
<script src="js/topojson.v1.min.js"></script>
<script src="js/chroma.min.js"></script>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="js/simplebar.min.js"></script>
</head>
<body>
<main>
<div class="loader"></div>
<div id="info" data-simplebar data-simplebar-auto-hide="true">
<div id="title" style="font-size:19px"><img src="img/virus_logo.png" width="28px"> Novel Coronavirus (COVID-19) Infection Map
<span><a href="https://twitter.com/UW" target="_blank"><i class="fab fa-twitter-square"></i></a></span>
<span><a href="https://github.com/jakobzhao/virus" target="_blank"><i class="fab fa-github-square"></i></a></span>
<span><a data-toggle="modal" data-target="#resourcewindow"><i class="far fa-newspaper"></i></a></span>
<span><a data-toggle="modal" data-target="#infowindow"><i class="nav fas fa-question-circle"></i></a></span>
</div>
<p><span id="placename">Global Trend</span> </p>
<div> <span id="date"></span> <span id="hint"> Click a place to review local trend.</span></div>
<div id="deck-1" class="card-deck counts">
<div class="card">
<div class="card-body confirmed">
<h5 class="card-title">Aggregated Confirmed
<i class="nav fas fa-exclamation-circle tooltip">
<span class="tooltiptext">All the confirmed cases ever since the discovery of the COVID-19 in the statistical area.</span>
</i>
</h5>
</div>
<p class="card-text">
<span class="confirmed-count"></span><span class="confirmed-new-count tooltip">
</span>
</p>
</div>
<div class="card">
<div class="card-body confirmed">
<h5 class="card-title">Active Confirmed
<i class="nav fas fa-exclamation-circle tooltip">
<span class="tooltiptext">The remaining confirmed cases. The aggregated confirmed cases excludes the recovered and death cases.</span>
</i>
</h5>
</div>
<p class="card-text"><span class="active-count"></span><span class="active-new-count"></span></p>
</div>
</div>
<div id="deck-2" class="card-deck counts">
<!-- <div class="card">
<div class="card-body suspected">
<h5 class="card-title">Suspected</h5>
<p class="card-text suspected-count">0</p>
</div>
</div> -->
<div class="card">
<div class="card-body recovered">
<h5 class="card-title">Recovered</h5>
<p class="card-text"><span class="recovered-count"></span><span class="recovered-new-count"></span></p>
</div>
</div>
<div class="card">
<div class="card-body death">
<h5 class="card-title">Death</h5>
<p class="card-text"><span class="death-count"></span><span class="death-new-count"></span></p>
</div>
</div>
</div>
<div id="timeline-chart"></div>
<div id="total-chart"></div>
<div id="rank-chart"></div>
<div id="footer">
<div>Infection Case(s) <i class='fas fa-users community'></i> indicates one or several confirmed infected individual(s) from the U.S., excluding those were identified from the Diamond Princess.
The dataset of the infected cases are continuously enriched from different data portals such as
<a href="https://coronavirus.1point3acres.com/en" target="_blank">1point3acres</a> as well as the public health department of different states.
</div>
<div>An Infected Community <i class="fas fa-procedures community"> </i> indicates a community or village where confirmed cases were found. The local governments in China have taken strict measures to isolate the residents of
these
places from the outside. The dataset of infected community can be found at <a href="https://lab.ahusmart.com/nCoV/api/detail" target="_blank">ahusmart</a>.
</div>
<div>This map is made by the <a href="http://hgis.uw.edu" target="_blank">Humanistic GIS Lab at University of Washington - Seattle</a>.
The data are mainly collected from <a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports/" target="_blank">WHO</a>,
<a href="https://www.cdc.gov/coronavirus/2019-ncov/cases-in-us.html" target="_blank">CDC</a>,
<a href="https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html" target="_blank">PHA</a> ,
<a href="http://2019ncov.chinacdc.cn/2019-nCoV/" target="_blank">China CDC</a>,
<a href="https://mapmiao.com/ncov/" target="_blank">Mapmiao</a>,
and <a href="https://voice.baidu.com/act/newpneumonia/newpneumonia" target="_blank">Baidu</a>.
The computational resources are provided by <a href="https://csde.washington.edu/" target="_blank">UW's Center for Studies in Demography and Ecology</a>. The base maps are from <a target="_blank"
href="https://github.com/CartoDB/cartodb/wiki/BaseMaps-available">CartoDB</a> and <a href="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/" target="_blank">ESRI</a>, and the geospatial data for the base maps
are acquired from the <a href="openstreetmap.org/copyright" target="_blank"> OpenStreetMap</a>.
<span style="color:#e8e3d3">The timely updated dataset of the virus infection can be downloaded <a href="http://hgis.uw.edu/virus/assets/virus.csv" style="color:#e8e3d3; text-decoration: underline;" target="_blank">here</a>.</span> Details
about this interactive
map can be found <a data-toggle="modal" data-target="#infowindow"> here</a>. If you have any questions or
concerns, please contact <a href="mailto:[email protected]">Bo Zhao</a>.
</div>
<p align="right" style="margin-right:25px; margin-top:-10px"><a href="https://hgis.uw.edu" target="_blank"><img src="img/logo.png" width="150px"></img></a></p>
</div>
</div>
<div id="map"></div>
<div id="legend-panel">
<div class="card-deck legend">
<div class="card">
<div class="card-body legend-color-1">
<h5 class="card-title" style="color:black">1</h5>
</div>
</div>
<div class="card">
<div class="card-body legend-color-2">
<h5 class="card-title" style="color:black">10</h5>
</div>
</div>
<div class="card">
<div class="card-body legend-color-3">
<h5 class="card-title" style="color:black">100</h5>
</div>
</div>
<div class="card">
<div class="card-body legend-color-4">
<h5 class="card-title" style="color:black">250</h5>
</div>
</div>
<div class="card">
<div class="card-body legend-color-5">
<h5 class="card-title" style="color:black">1,000</h5>
</div>
</div>
<div class="card">
<div class="card-body legend-color-6">
<h5 class="card-title" style="color:black">10,000+</h5>
</div>
</div>
</div>
</div>
</main>
<div id="infowindow" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document" style="width:1250px!important">
<div class="modal-content">
<div class="modal-header">
<strong class="modal-title" id="exampleModalLongTitle">Info</strong>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="demo" class="carousel " data-ride="carousel">
<p>This online interactive map enables users to track both the global and local trends of Novel Coronavirus infection since Jan 21st, 2020. The supporting dataset is timely collected from multiple official sources and then plotted onto
this map.</p>
<h5>Data Sources</h5>
<p>The data are mainly collected from 1. <a href="http://www.nhc.gov.cn" target="_blank">National Health Commission</a> (NHC) of the People’s Republic of China
2. China’s Provincial & Municipal Health Commission, China’s Provincial & Municipal government database
3. Public data published from Hongkong, Macau, and Taiwan official channels
4. <a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports/" target="_blank">World Health Organization</a> (WHO)
5. <a href="https://www.cdc.gov/coronavirus/2019-ncov/cases-in-us.html" target="_blank">Centers for Disease Control and Prevention</a> (CDC)
6. <a href="https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html" target="_blank">Public Health Agency of Canada</a> (PHAC)
7. <a href="https://voice.baidu.com/act/newpneumonia/newpneumonia" target="_blank">Baidu</a>.
8. <a href="https://mapmiao.com/ncov/" target="_blank">Mapmiao</a>(data of quarantine area in China).
The dataset (in SQLite format) can be downloaded from <a href="http://hgis.uw.edu/virus/assets/virus.db" target="_blank">here</a>.
You can view the data (in CSV format) at <a href="http://hgis.uw.edu/virus/assets/virus.csv" target="_blank">here</a>.</p>
<p>In the data table, each entry indicates the infection status in the format of "#-#-#-#" -- a 4-sequel entry divided by dashes. The first sequel represents the number of confirmed cases, the second sequel represents suspected
cases, the third sequel represents cured cases, the fourth sequel represents death cases.</p>
<h5>Update Procedure</h5>
<p>The country-level data is collected from WHO, while the data of each province in China is collected from multiple sources such as China's NHC,Mapmiao and Baidu. Notably, we also refer to CDC to verify the virus spreading status in the
U.S. To
make a timely data and map updates, we collect the data every 4 hours, and verify the data quality per day. In addition, we plan to provide finer-scale data from China (the county level), U.S. (the state level) and Canada (the province
level) in the next version.</p>
<h5>Acknowledgment</h5>
<p>
<li>Team members: Bo Zhao, Fengyu Xu, Lola Kang, Joshua Ji, and Steven Bao.</li>
<li>The Server is hosted at UW’s <a href="https://https://csde.washington.edu/" target="_blank">Center for Studies in Demography and Ecology (CSDE)</a>.</li>
</p>
</div>
</div>
</div>
</div>
</div>
<div id="resourcewindow" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document" style="width:1250px!important">
<div class="modal-content">
<div class="modal-header">
<strong class="modal-title" id="exampleModalLongTitle">Resource</strong>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="demo" class="carousel " data-ride="carousel">
<h5>Coronavirus information resources</h5>
<br><b> China - Official Websites</b>
<table style="width:100%">
<tr>
<td><a href="http://wjw.beijing.gov.cn/xwzx_20031/wnxw/" target="_blank"> Beijing</a></td>
<td><a href="http://wsjkw.hebei.gov.cn/list/more_newlist_14.html" target="_blank"> Hebei</a></td>
<td><a href="http://wsjk.ln.gov.cn/wst_zdzt/xxgzbd/yqtb/" target="_blank"> Liaoning</a></td>
<td><a href=" http://www.jl.gov.cn/szfzt/jlzxd/yqtb/" target="_blank"> Jilin</a></td>
</tr>
<tr>
<td><a href="http://wjw.jiangsu.gov.cn/col/col7290/index.html" target="_blank"> Jiangsu</a></td>
<td><a href="http://wsjkw.sh.gov.cn/yqfk2020/" target="_blank"> Shanghai</a></td>
<td><a href="http://hc.jiangxi.gov.cn/ztxx/xxgzbdgrdfyyqfk/yqtb/index.shtml" target="_blank"> Jiangxi</a></td>
<td><a href="http://wsjkw.gd.gov.cn/zwyw_yqxx/" target="_blank"> Guangdong</a></td>
</tr>
<tr>
<td><a href="http://wjw.hunan.gov.cn/wjw/qwfb/yqfkgz_list.html" target="_blank"> Hunan</a></td>
<td><a href="http://wst.hainan.gov.cn/yqfk/" target="_blank"> Hainan</a></td>
<td><a href="https://www.zjwjw.gov.cn/col/col1202112/index.html" target="_blank"> Zhejiang</a></td>
<td><a href="http://www.hnwsjsw.gov.cn/channels/854.shtml" target="_blank"> Henan</a></td>
</tr>
<tr>
<td><a href="http://hc.jiangxi.gov.cn/ztxx/xxgzbdgrdfyyqfk/yqtb/index.shtml" target="_blank"> Jiangxi</a></td>
<td><a href="http://wjw.hubei.gov.cn/bmdt/ztzl/fkxxgzbdgrfyyq/xxfb/" target="_blank"> Hubei</a></td>
<td><a href=" http://sxwjw.shaanxi.gov.cn/col/col9/index.html" target="_blank"> Shaanxi</a></td>
<td><a href="http://wjw.shanxi.gov.cn/wjywl02/index.hrh" target="_blank"> Shanxi</a></td>
</tr>
<tr>
<td><a href="http://wsjkw.nx.gov.cn/yqfkdt/yqsd1.htm" target="_blank"> Ningxia</a></td>
<td><a href="https://wsjkw.qinghai.gov.cn/ztbd/yqjk/fkdt/2020/02/18/1582009147575.html" target="_blank"> Qinghai</a></td>
<td><a href="http://wsjk.gansu.gov.cn/channel/11217/index.html" target="_blank"> Gansu</a></td>
<td><a href="http://xjhfpc.gov.cn/ztzl/fkxxgzbdfygz/yqtb.htm" target="_blank"> Xinjiang</a></td>
</tr>
<tr>
<td><a href="http://www.gzhfpc.gov.cn/ztzl_500663/xxgzbdgrdfyyqfk/" target="_blank"> Guizhou</a></td>
<td><a href="http://ynswsjkw.yn.gov.cn/wjwWebsite/web/col?id=UU157976428326282067&cn=xxgzbd&pcn=ztlm&pid=UU145102906505319731" target="_blank"> Yunnan</a></td>
<td><a href="http://wsjkw.cq.gov.cn/topic/25.jspx" target="_blank"> Chongqing</a></td>
<td><a href="http://wjw.xizang.gov.cn/xwzx/wsjkdt/" target="_blank"> Xizang</a></td>
</tr>
<tr>
<td><a href="https://www.ssm.gov.mo/apps1/PreventWuhanInfection/ch.aspx#clg17046" target="_blank"> Macau</a></td>
<td><a href="https://sites.google.com/cdc.gov.tw/2019ncov/taiwan" target="_blank"> Taiwan</a></td>
<td><a href="http://wsjkw.hlj.gov.cn/index.php/Home/Zwgk/all/typeid/42" target="_blank"> Heilongjiang</a></td>
<td><a href="https://v.gxnews.com.cn/zt/2020yq" target="_blank"> Guangxi</a></td>
</tr>
<tr>
<td><a href="http://wjw.ah.gov.cn/news_list_477_1.html" target="_blank"> Anhui</a></td>
<td><a href="http://wjw.nmg.gov.cn/xwzx/xwfb/index.shtml" target="_blank"> Neimenggu</a></td>
<td><a href="http://wsjkw.sc.gov.cn/scwsjkw/gzbd01/ztwzlmgl.shtml" target="_blank"> Sichuan</a></td>
<td><a href="https://www.chp.gov.hk/files/pdf/enhanced_sur_pneumonia_wuhan_chi.pdf" target="_blank"> Hongkong</a></td>
</tr>
</table>
<br><b> the US - Official Websites</b>
<table style="width:100%">
<tr>
<td><a href="http://www.alabamapublichealth.gov/infectiousdiseases/2019-coronavirus.html" target="_blank">Alabama</a></td>
<td><a href="https://dphhs.mt.gov/publichealth/cdepi/diseases/coronavirusmt" target="_blank">Montana</a></td>
<td><a href="http://dhss.alaska.gov/dph/Epi/id/Pages/COVID-19/monitoring.aspx" target="_blank">Alaska</a></td>
<td><a href="http://dhhs.ne.gov/Pages/Coronavirus.aspx" target="_blank">Nebraska</a></td>
</tr>
<tr>
<td><a href="https://www.azdhs.gov/preparedness/epidemiology-disease-control/infectious-disease-epidemiology/index.php#novel-coronavirus-home" target="_blank">Arizona</a></td>
<td><a href="http://dpbh.nv.gov/Programs/OPHIE/dta/Hot_Topics/Coronavirus/" target="_blank">Nevada</a></td>
<td><a href="https://www.healthy.arkansas.gov/programs-services/topics/novel-coronavirus" target="_blank">Arkansas</a></td>
<td><a href="https://www.dhhs.nh.gov/dphs/cdcs/2019-ncov.htm" target="_blank">New Hampshire</a></td>
</tr>
<tr>
<td><a href="https://www.cdph.ca.gov/Programs/CID/DCDC/Pages/Immunization/ncov2019.aspx" target="_blank">California</a></td>
<td><a href=" https://www.colorado.gov/pacific/cdphe/2019-novel-coronavirus" target="_blank">Colorado</a></td>
<td><a href="https://cv.nmhealth.org/" target="_blank">New Mexico</a></td>
<td><a href=" https://portal.ct.gov/coronavirus" target="_blank">Connecticut</a></td>
</tr>
<tr>
<td><a href=" https://health.ny.gov/diseases/communicable/coronavirus/" target="_blank">New York</a></td>
<td><a href="https://www.dhss.delaware.gov/dhss/dph/epi/2019novelcoronavirus.html" target="_blank">Delaware</a></td>
<td><a href="https://coronavirus.dc.gov/page/coronavirus-surveillance-data" target="_blank">The District of Columbia</a></td>
<td><a href="https://www.health.nd.gov/diseases-conditions/coronavirus/north-dakota-coronavirus-cases" target="_blank">North Dakota</a></td>
</tr>
<tr>
<td><a href="http://www.floridahealth.gov/diseases-and-conditions/COVID-19/index.html" target="_blank">Florida</a></td>
<td><a href="https://coronavirus.ohio.gov/wps/portal/gov/covid-19/" target="_blank">Ohio</a></td>
<td><a href="https://dph.georgia.gov/" target="_blank">Georgia</a></td>
<td><a href="https://www.ok.gov/health/Prevention_and_Preparedness/Acute_Disease_Service/Disease_Information/Coronavirus_Disease_2019/Oklahoma_Response_to_Coronavirus_Disease_2019/index.html" target="_blank">Oklahoma</a></td>
</tr>
<tr>
<td><a href="https://www.oregon.gov/oha/PH/DISEASESCONDITIONS/DISEASESAZ/Pages/emerging-respiratory-infections.aspx" target="_blank">Oregon</a></td>
<td><a href="https://health.hawaii.gov/docd/advisories/novel-coronavirus-2019/#situation" target="_blank">Hawaii</a></td>
<td><a href="https://coronavirus.idaho.gov/" target="_blank">Idaho</a></td>
<td><a href="https://www.health.pa.gov/topics/disease/Pages/Coronavirus.aspx" target="_blank">Pennsylvania</a></td>
</tr>
<tr>
<td><a href="http://dph.illinois.gov/topics-services/diseases-and-conditions/diseases-a-z-list/coronavirus" target="_blank">Illinois</a></td>
<td><a href="https://www.scdhec.gov/index.php/health/infectious-diseases/viruses/coronavirus-disease-2019-covid-19" target="_blank">South Carolina</a></td>
<td><a href="https://idph.iowa.gov/Emerging-Health-Issues/Novel-Coronavirus" target="_blank">Iowa</a></td>
<td><a href="https://doh.sd.gov/news/Coronavirus.aspx" target="_blank">South Dakota</a></td>
</tr>
<tr>
<td><a href="https://chfs.ky.gov/agencies/dph/pages/covid19.aspx" target="_blank">Kentucky</a></td>
<td><a href="https://www.dshs.state.tx.us/coronavirus/#casecounts" target="_blank">Texas</a></td>
<td><a href="https://coronavirus.utah.gov/coronavirus-latest-information/" target="_blank">Utah</a></td>
<td><a href="https://www.maine.gov/dhhs/mecdc/infectious-disease/epi/airborne/coronavirus.shtml" target="_blank">Maine</a></td>
</tr>
<tr>
<td><a href="https://www.healthvermont.gov/response/infectious-disease/2019-novel-coronavirus" target="_blank">Vermont</a></td>
<td><a href="https://phpa.health.maryland.gov/Pages/Novel-coronavirus.aspx" target="_blank">Maryland</a></td>
<td><a href="http://www.vdh.virginia.gov/surveillance-and-investigation/novel-coronavirus/" target="_blank">Virginia</a></td>
<td><a href="https://www.mass.gov/info-details/covid-19-cases-quarantine-and-monitoring" target="_blank">Massachusetts</a></td>
</tr>
<tr>
<td><a href="https://www.doh.wa.gov/Emergencies/Coronavirus" target="_blank">Washington</a></td>
<td><a href="https://www.michigan.gov/coronavirus" target="_blank">Michigan</a></td>
<td><a href=" https://dhhr.wv.gov/Coronavirus%20Disease-COVID-19/Pages/default.aspx" target="_blank">West Virginia</a></td>
<td><a href="https://www.health.state.mn.us/diseases/coronavirus/situation.html" target="_blank">Minnesota</a></td>
</tr>
<tr>
<td><a href="https://www.dhs.wisconsin.gov/outbreaks/index.htm" target="_blank">Wisconsin</a></td>
<td><a href=" https://msdh.ms.gov/msdhsite/_static/14,0,420.html" target="_blank">Mississippi</a></td>
<td><a href="https://health.wyo.gov/publichealth/infectious-disease-epidemiology-unit/disease/novel-coronavirus/" target="_blank">Wyoming</a></td>
<td><a href="https://health.mo.gov/living/healthcondiseases/communicable/novel-coronavirus/" target="_blank">Missouri</a></td>
</tr>
</table>
<br><b>Other Countries - Official Websites</b>
<table style="width:100%">
<tr>
<td><a href="https://www.cdc.gov/coronavirus/2019-ncov/cases-in-us.html" target="_blank"> the U.S.</a></td>
<td><a href=" https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html" target="_blank"> Canada</a></td>
<td><a href="https://www.cdc.go.kr/board/board.es?mid=a20501000000&bid=0015" target="_blank"> Republic of Korean</a></td>
</tr>
<tr>
<td><a href="https://www.mhlw.go.jp/stf/newpage_09571.html" target="_blank"> Japan</a></td>
<td><a href="https://www.health.gov.au/news/health-alerts/novel-coronavirus-2019-ncov-health-alert#current-status" target="_blank"> Australia</a></td>
<td><a href="https://www.moh.gov.sg/covid-19" target="_blank"> Singapore</a></td>
</tr>
<tr>
<td><a href="http://www.salute.gov.it/nuovocoronavirus" target="_blank"> Italy</a></td>
<td><a href="https://www.gov.uk/guidance/coronavirus-covid-19-information-for-the-public" target="_blank"> the UK</a></td>
<td><a href="http://irangov.ir/cat/509" target="_blank"> Iran</a></td>
</tr>
</table>
<br><b>Other Resources:</b>
<ul>
<li><a href="https://ncov.dxy.cn/" target="_blank"> Dingxiangyuan</a></li> (Update national daily data and educate Coronavirus knowledge)
<li><a href="http://zhongxinzhiyuan.cn/yiqing_real_time_map.html" target="_blank"> Zhongxinzhiyuan</a></li> (Update the latest news and data visualization)
<li><a href="http://2019ncov.nosugartech.com/search.html" target="_blank"> Tongchengchaxun</a></li> (Coronavirus confirmed patients' trips query tool)
<li><a href="https://voice.baidu.com/act/newpneumonia/newpneumonia" target="_blank"> Baidu Coronavirus Data Report</a></li> (Update Global daily data and hot topics about Coronavirus)
<li><a href="https://www.nejm.org/coronavirus" target="_blank"> The New England Journal of Medicine</a></li> (A collection of articles and other resources on the Coronavirus (Covid-19) outbreak, including clinical reports, management
guidelines, and commentary)
<li><a href="http://www.nhc.gov.cn/xcs/pfzs/list_gzbd.shtml" target="_blank"> National Health Commission of the People's Republic of China </a></li> (Coronavirus(Covid-19) legal knowledge)
</ul>
</p>
</div>
</div>
</div>
</div>
</div>
<script>
$(window).ready(function() {
$('.loader').fadeOut("slow");
});
L.TopoJSON = L.GeoJSON.extend({
addData: function(jsonData) {
if (jsonData.type === 'Topology') {
for (key in jsonData.objects) {
geojson = topojson.feature(jsonData, jsonData.objects[key]);
L.GeoJSON.prototype.addData.call(this, geojson);
}
} else {
L.GeoJSON.prototype.addData.call(this, jsonData);
}
}
});
// Copyright (c) 2013 Ryan Clark
// var createLabelIcon = function(labelClass, labelText) {
// return L.divIcon({
// className: labelClass,
// html: labelText
// })
// }
//
// var usBounds = L.latLngBounds(
// L.latLng(24.520833, -124.7771694), //Southwest
// L.latLng(49.384472, -66.947028) //Northeast
// );
var mymap = L.map('map', {
center: [22, 70],
zoomControl: false,
zoom: 5.5,
maxZoom: 10,
minZoom: 2,
worldCopyJump: true
});
// .fitWorld()
new L.Control.Zoom({
position: 'topright'
}).addTo(mymap);
var gray = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}@2x.png');
// var dark = L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png').addTo(mymap);
var voyager =
L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}@2x.png').addTo(mymap);
var satellite =
L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}');
var baseLayers = {
'CartoDB Light': gray,
// 'Dark': dark,
'CartoDB Voyager': voyager,
'ESRI Satellite': satellite
}
var chart, rchart;
var colors = chroma.scale('YlOrRd').mode('lch').colors(6);
for (i = 0; i < 6; i++) {
$('head').append($("<style> .region-color-" + (i + 1).toString() + " { color: " + colors[i] + "; font-size: 15px; text-shadow: 0 0 3px #ffffff;} </style>"));
$('head').append($("<style> .legend-color-" + (i + 1).toString() + " { background: " + colors[i] + "; font-size: 15px; text-shadow: 0 0 3px #ffffff;} </style>"));
}
var communities = new L.MarkerClusterGroup({
spiderfyOnMaxZoom: false,
singleMarkerMode: true,
// showCoverageOnHover: false,
// zoomToBoundsOnClick: false,
iconCreateFunction: function(cluster) {
return L.divIcon({
html: '<i class="fas fa-procedures community community-marker"> <b>' + cluster.getChildCount() + '</b></i>'
});
}
});
var cases = new L.MarkerClusterGroup({
spiderfyOnMaxZoom: true,
singleMarkerMode: true,
// showCoverageOnHover: false,
// zoomToBoundsOnClick: false,
iconCreateFunction: function(cluster) {
return L.divIcon({
html: '<i class="fas fa-users community community-marker"> <b>' + cluster.getChildCount() + '</b></i>'
});
}
}).addTo(mymap);
Promise.all([
d3.csv('assets/india_virus.csv'),
d3.json("assets/all-topo-15.json"),
d3.csv('assets/communities.csv'),
d3.csv('assets/timestamp.txt'),
d3.csv('assets/cases.csv')
]).then(function(datasets) {
datasets[2].forEach(function(d) {
L.marker([parseFloat(d.lat), parseFloat(d.lng)]).bindPopup(d.name + " (<a target='_blank' href='https://translate.google.com/#view=home&op=translate&sl=zh-CN&tl=en&text=" + d.name + "'>Translate to English</a>)").addTo(
communities);
})
datasets[4].forEach(function(d) {
//console.log(d.id)
L.marker([parseFloat(d.lat), parseFloat(d.lng)]).bindPopup("<b>" + d.no + "</b> <p>" + d.note + " identified on " + d.date + ", " + d.reference + ".</p>").addTo(
cases);
})
// lastupdate = new Date(datasets[0][datasets[0].length - 1]["datetime"]);
// $("#date").text("Last update: " + lastupdate.toLocaleDateString() + " " + lastupdate.toLocaleTimeString() + " PST");
$("#date").text("Last update: " + datasets[3][0].timestamp.split(".")[0] + " PST");
//totalConfirmed
function tc(country) {
if (country == undefined) {
country = 0
} else {
country = +country.split("-")[0];
}
return country;
}
//totalRecovered
function tr(country) {
if (country.split("-")[2] == undefined) {
country = 0
} else {
country = +country.split("-")[2];
}
return country;
}
//totalDeath
function td(country) {
if (country.split("-")[3] == undefined) {
country = 0
} else {
country = +country.split("-")[3];
}
return country;
}
var latest = datasets[0][datasets[0].length - 1];
var china = tc(latest["anhui"]) + tc(latest["beijing"]) + tc(latest["chongqing"]) + tc(latest["fujian"]) + tc(latest["gansu"]) + tc(latest["guangdong"]) + tc(latest["guangxi"]) + tc(latest["guizhou"]) + tc(latest["hainan"]) + tc(latest[
"hebei"]) + tc(latest["heilongjiang"]) + tc(latest["henan"]) + tc(latest["hongkong"]) + tc(latest["hubei"]) + tc(latest["hunan"]) + tc(latest["neimenggu"]) + tc(latest["jiangsu"]) + tc(latest["jiangxi"]) + tc(latest["jilin"]) + tc(
latest["liaoning"]) + tc(latest["macau"]) + tc(latest["ningxia"]) + tc(latest["qinghai"]) + tc(latest["shaanxi"]) + tc(latest["shandong"]) + tc(latest["shanghai"]) + tc(latest["shanxi"]) + tc(latest["sichuan"]) + tc(latest["taiwan"]) +
tc(latest["tianjin"]) + tc(latest["xinjiang"]) + tc(latest["yunnan"]) + tc(latest["zhejiang"]) + tc(latest["xizang"]);
var top = {
"China": china,
"Japan": tc(latest["japan"]),
"US": tc(latest["us"]),
"Singapore": tc(latest["singapore"]),
"South Korea": tc(latest["south korea"]),
"Germany": tc(latest["germany"]),
"Spain": tc(latest["spain"]),
"Iran": tc(latest["iran"]),
"Italy": tc(latest["italy"]),
"France": tc(latest["france"]),
"Thailand": tc(latest["thailand"])
};
function sortJsObject(obj) {
items = Object.keys(obj).map(function(key) {
return [key, obj[key]];
});
items.sort(function(first, second) {
return second[1] - first[1];
});
sorted_obj = {}
$.each(items, function(k, v) {
use_key = v[0]
use_value = v[1]
sorted_obj[use_key] = use_value
})
return (sorted_obj)
}
stop = sortJsObject(top);
var t = ["t"];
var confirmed = ["Aggr. Confirmed"];
var active = ["Active Confirmed"];
var suspected = ["Suspected"];
var recovered = ["Recovered"];
var death = ["Death"]
var global = {
name: "Global Trend",
c: confirmed,
s: suspected,
r: recovered,
d: death,
a: active
}
function calCounts(i) {
cf = 0, sp = 0, rc = 0, dd = 0, active = 0;
datasets[0].forEach(function(d) {
var USTd = new Date(d["datetime"]);
t.push(USTd.setHours(USTd.getHours() + 8));
// t.push(new Date(d["datetime"]));
cf = 0, sp = 0, rc = 0, dd = 0, active = 0;
current = d;
delete current["datetime"];
if (i["name"] == "Global Trend") {
Object.values(current).forEach(function(d) {
if (d == undefined) {
d = "0"
};
items = d.split("-");
switch (items.length) {
case 4:
dd += +items[3];
case 3:
rc += +items[2];
case 2:
sp += +items[1];
case 1:
cf += +items[0];
break;
};
active = cf - dd - rc;
});
//
cf -= (tc(current["alabama"]) + tc(current["alaska"]) + tc(current["arizona"]) + tc(current["arkansas"]) + tc(current["california"]) + tc(current["colorado"]) + tc(current["connecticut"]) + tc(current["delaware"]) + tc(current[
"florida"]) + tc(current["georgia usa"]) + tc(current["hawaii"]) + tc(current["idaho"]) + tc(current["illinois"]) + tc(current["indiana"]) + tc(current["iowa"]) + tc(current["kansas"]) + tc(current["kentucky"]) + tc(current[
"louisiana"]) + tc(current["maine"]) + tc(current["maryland"]) + tc(current["massachusetts"]) + tc(current["michigan"]) + tc(current["minnesota"]) + tc(current["mississippi"]) + tc(current["missouri"]) + tc(current[
"montana"]) + tc(
current["nebraska"]) + tc(current["nevada"]) + tc(current["new hampshire"]) + tc(current["new jersey"]) + tc(current["new mexico"]) + tc(current["new york"]) + tc(current["north carolina"]) + tc(current["north dakota"]) +
tc(current[
"ohio"]) + tc(current["oklahoma"]) + tc(current["oregon"]) + tc(current["pennsylvania"]) + tc(current["rhode island"]) + tc(current["south carolina"]) + tc(current["south dakota"]) + tc(current["tennessee"]) + tc(current[
"texas"]) +
tc(current["utah"]) + tc(current["vermont"]) + tc(current["virginia"]) + tc(current["washington"]) + tc(current["west virginia"]) + tc(current["canada"]));
rc -= (tr(current["alabama"]) + tr(current["alaska"]) + tr(current["arizona"]) + tr(current["arkansas"]) + tr(current["california"]) + tr(current["colorado"]) + tr(current["connecticut"]) + tr(current["delaware"]) + tr(current[
"florida"]) + tr(current["georgia usa"]) + tr(current["hawaii"]) + tr(current["idaho"]) + tr(current["illinois"]) + tr(current["indiana"]) + tr(current["iowa"]) + tr(current["kansas"]) + tr(current["kentucky"]) + tr(current[
"louisiana"]) + tr(current["maine"]) + tr(current["maryland"]) + tr(current["massachusetts"]) + tr(current["michigan"]) + tr(current["minnesota"]) + tr(current["mississippi"]) + tr(current["missouri"]) + tr(current[
"montana"]) + tc(
current["nebraska"]) + tr(current["nevada"]) + tr(current["new hampshire"]) + tr(current["new jersey"]) + tr(current["new mexico"]) + tr(current["new york"]) + tr(current["north carolina"]) + tr(current["north dakota"]) +
tr(current[
"ohio"]) + tr(current["oklahoma"]) + tr(current["oregon"]) + tr(current["pennsylvania"]) + tr(current["rhode island"]) + tr(current["south carolina"]) + tr(current["south dakota"]) + tr(current["tennessee"]) + tr(current[
"texas"]) +
tr(current["utah"]) + tr(current["vermont"]) + tr(current["virginia"]) + tr(current["washington"]) + tr(current["west virginia"]) + tr(current["canada"]));
dd -= (td(current["alabama"]) + td(current["alaska"]) + td(current["arizona"]) + td(current["arkansas"]) + td(current["california"]) + td(current["colorado"]) + td(current["connecticut"]) + td(current["delaware"]) + td(current[
"florida"]) + td(current["georgia usa"]) + td(current["hawaii"]) + td(current["idaho"]) + td(current["illinois"]) + td(current["indiana"]) + td(current["iowa"]) + td(current["kansas"]) + td(current["kentucky"]) + td(current[
"louisiana"]) + td(current["maine"]) + td(current["maryland"]) + td(current["massachusetts"]) + td(current["michigan"]) + td(current["minnesota"]) + td(current["mississippi"]) + td(current["missouri"]) + td(current[
"montana"]) + tc(
current["nebraska"]) + td(current["nevada"]) + td(current["new hampshire"]) + td(current["new jersey"]) + td(current["new mexico"]) + td(current["new york"]) + td(current["north carolina"]) + td(current["north dakota"]) +
td(current[
"ohio"]) + td(current["oklahoma"]) + td(current["oregon"]) + td(current["pennsylvania"]) + td(current["rhode island"]) + td(current["south carolina"]) + td(current["south dakota"]) + td(current["tennessee"]) + td(current[
"texas"]) +
td(current["utah"]) + td(current["vermont"]) + td(current["virginia"]) + td(current["washington"]) + td(current["west virginia"]) + td(current["canada"]));
} else if (i["name"] == "china") {
for (const [key, value] of Object.entries(current)) {
if (key == "anhui" || key == "beijing" || key == "chongqing" || key == "fujian" || key == "gansu" || key == "guangdong" ||
key == "guangxi" || key == "guizhou" || key == "hainan" || key == "hebei" || key == "heilongjiang" || key == "henan" || key == "hongkong" ||
key == "hubei" || key == "hunan" || key == "neimenggu" || key == "jiangsu" || key == "jiangxi" || key == "jilin" || key == "liaoning" ||
key == "macau" || key == "ningxia" || key == "qinghai" || key == "shaanxi" || key == "shandong" || key == "shanghai" || key == "shanxi" ||
key == "sichuan" || key == "taiwan" || key == "tianjin" || key == "xinjiang" || key == "yunnan" || key == "zhejiang" || key == "xizang") {
if (value == undefined) {
value = "0"
};
items = value.split("-");
switch (items.length) {
case 4:
dd += +items[3];
case 3:
rc += +items[2];
case 2:
sp += +items[1];
case 1:
cf += +items[0];
break;
};
active = cf - dd - rc;
}
}
} else {
d = current[i["name"]];
if (d == undefined) {
d = "0"
};
items = d.split("-");
switch (items.length) {
case 4:
dd += +items[3];
case 3:
rc += +items[2];
case 2:
sp += +items[1];
case 1:
cf += +items[0];
break;
};
active = cf - dd - rc;
}
i["c"].push(cf);
// i["s"].push(sp);
i["r"].push(rc);
i["d"].push(dd);
i["a"].push(active);
});
active = cf - rc - dd;
$(".confirmed-count").text(cf);
// $(".suspected-count").text(sp);
$(".recovered-count").text(rc);
$(".death-count").text(dd);
$(".active-count").text(active);
nc = i.c[i.c.length - 1] - i.c[i.c.length - 2];
nr = i.r[i.r.length - 1] - i.r[i.r.length - 2];
nd = i.d[i.d.length - 1] - i.d[i.d.length - 2];
na = i.a[i.a.length - 1] - i.a[i.a.length - 2];
if (nc > 0) {
$(".confirmed-new-count").text("+" + nc.toString());
} else if (nc == 0) {
$(".confirmed-new-count").text("");
} else {
$(".confirmed-new-count").text(nc.toString());
}
if (nr > 0) {
$(".recovered-new-count").text("+" + nr.toString());
} else if (nr == 0) {
$(".recovered-new-count").text("")
} else {
$(".recovered-new-count").text(nr.toString());
}
if (nd > 0) {
$(".death-new-count").text("+" + nd.toString());
} else if (nd == 0) {
$(".death-new-count").text("")
} else {
$(".death-new-count").text(nd.toString());
}
if (na > 0) {
$(".active-new-count").text("+" + na.toString());
} else if (na == 0) {
$(".active-new-count").text("")
} else {
$(".active-new-count").text(na.toString());
}
if (i["name"] == "anhui" || i["name"] == "beijing" || i["name"] == "chongqing" || i["name"] == "fujian" || i["name"] == "gansu" || i["name"] == "guangdong" ||
i["name"] == "guangxi" || i["name"] == "guizhou" || i["name"] == "hainan" || i["name"] == "hebei" || i["name"] == "heilongjiang" || i["name"] == "henan" || i["name"] == "hongkong" ||
i["name"] == "hubei" || i["name"] == "hunan" || i["name"] == "neimenggu" || i["name"] == "jiangsu" || i["name"] == "jiangxi" || i["name"] == "jilin" || i["name"] == "liaoning" ||
i["name"] == "macau" || i["name"] == "ningxia" || i["name"] == "qinghai" || i["name"] == "shaanxi" || i["name"] == "shandong" || i["name"] == "shanghai" || i["name"] == "shanxi" ||
i["name"] == "sichuan" || i["name"] == "tianjin" || i["name"] == "xinjiang" || i["name"] == "yunnan" || i["name"] == "zhejiang" || i["name"] == "xizang") {
$("#placename").text(i["name"].toUpperCase() + ", CHINA");
} else {
$("#placename").text(i["name"].toUpperCase());
}
}
function setColor(enname) {
var id = 0;
var pop = datasets[0][datasets[0].length - 1][enname];
if (pop != undefined) {
pop = +pop.toString().split("-")[0];
} else {
pop = 0;
// return "#00000000";
}
if (pop >= 10000) {
id = 5;
} else if (pop > 1000 && pop <= 10000) {
id = 4;
} else if (pop > 250 && pop <= 1000) {
id = 3;
} else if (pop > 100 && pop <= 250) {
id = 2;
} else if (pop > 10 && pop <= 100) {
id = 1;
} else if (pop > 0 && pop <= 10) {
id = 0;
} else {
id = -1;
return "#00000000";
}
return colors[id];
}
function style(feature) {
// if ( feature.properties.enname == "texas" || feature.properties.enname == "wisconsin" || feature.properties.enname == "arizona" || feature.properties.enname == "california" || feature.properties.enname == "washington" || feature.properties.enname == "british columbia" || feature.properties.enname == "ontario" || feature.properties.enname == "illinois" || feature.properties
// .enname == "massachusetts") {
if (feature.properties.enname == "us" || feature.properties.enname == "canada") {
return {
fillOpacity: 0,
opacity: 0,
};
} else {
return {
fillColor: setColor(feature.properties.enname),
fillOpacity: 0.4,
weight: 1,
opacity: 1,
color: '#b4b4b4',
dashArray: '3'
};
}
}
function highlightFeature(e) {
// e indicates the current event
var layer = e.target; //the target capture the object which the event associates with
layer.setStyle({
weight: 4,
opacity: 0.8,
color: '#e3e3e3',
fillColor: '#00ffd9',
fillOpacity: 0.1
});
// bring the layer to the front.
layer.bringToFront();
if (e.target.feature.properties.enname == "us" || e.target.feature.properties.enname == "canada") {
layer.bringToBack();
}
}
// 3.2.2 zoom to the highlighted feature when the mouse is clicking onto it.
function zoomToFeature(e) {
// mymap.fitBounds(e.target.getBounds());
L.DomEvent.stopPropagation(e);
$("#hint").text("Click here to the global trend.");
displayPlace(e.target.feature.properties.enname)
}
// 3.2.3 reset the hightlighted feature when the mouse is out of its region.
function resetHighlight(e) {
areas.resetStyle(e.target);
}
// 3.3 add these event the layer obejct.
function onEachFeature(feature, layer) {
layer.on({
mouseover: highlightFeature,
click: zoomToFeature,
mouseout: resetHighlight
});
}
var areas = new L.TopoJSON(datasets[1], {
style: style,
onEachFeature: onEachFeature
}).addTo(mymap);
new L.control.layers(baseLayers, {
"Infection Level": areas,
"Infection Case(s) <i class='fas fa-users community'></i>": cases,
"Infected Community <i class='fas fa-procedures community'></i>": communities
}, {
collapsed: false
}).addTo(mymap);
$("#hint").on("click", function() {
calCounts(global);
chart.load({
columns: [global.c, global.a, global.r, global.d],
unload: ['Aggr. Confirmed', 'Active Confirmed', 'Recovered', 'Death'],
});
$("#hint").text("Click a place to review local trend.");
});
function onMapClick(e) {
$("#hint").click();
}
mymap.on('click', onMapClick);
calCounts(global);
chart = c3.generate({
size: {
height: 280,
width: 440
},
data: {
x: "t",
y: "confirmed",
columns: [t, global.c, global.a, global.r, global.d],
type: 'line',
axes: {
confirmed: 'y'
},
colors: {
'Aggr. Confirmed': '#dc3545',
// Suspected: 'orange',
'Active Confirmed': 'orange',
Recovered: '#28a745',
Death: '#5d4f72e8'
}
},
zoom: {
enabled: true
},
axis: {
x: {
type: "timeseries",
tick: {
format: "%b %d",
centered: true,
fit: true,
count: 8
}
},
y: {
label: {
text: 'Cases',
position: 'outer-middle'
},
min: 0,
padding: {
bottom: 0
},
type: 'linear'
}
},
point: {
r: 3,
focus: {
expand: {
r: 5
}
}
},
zoom: {
// rescale: true,
enabled: false,
type: "scroll",
},
tooltip: {
linked: true,
},
legend: {
position: 'inset',
inset: {
anchor: "top-left",
y: 10
},
},
bindto: "#total-chart"
});