Timeline of the COVID-19 pandemic

From Encyclopedia Britannia
Jump to navigation Jump to search

<graph mode="interactive" title="Cumulative per capita confirmed COVID-19 cases"> {

 "version": 2, "width": 500, "height": 260,
 "padding": 12,
 "background": "#edf1f7",
 "data": [
   {
     "name": "population",
     "url": "wikiraw:///Template:Interactive COVID-19 maps/data/UN 2019 Population by country-csv",
     "format": {
       "type": "csv"
     }
   },
   {
     "name": "highlights",
     "url": "wikiraw:///Template:Interactive COVID-19 maps/data/Confirmed covid cases-csv",
     "format": {
       "type": "csv",
       "parse": {
         "date": "date",
         "cases": "number"
       }
     },
     "transform": [{
         "type": "lookup",
         "on": "population",
         "keys": ["id"],
         "onKey": "ISO3",
         "as": ["pop"],
         "default": {}
       },
       {
         "type": "formula",
         "field": "v",
         "expr": "round((parseFloat(datum[+dateStamp])/datum.pop.Population)*100)/100"
       }
     ]
   },
   {
     "name": "globalByDate",
     "url": "wikiraw:///Template:Interactive COVID-19 maps/data/global Confirmed covid cases by date-csv",
     "format": {
       "type": "csv",
       "parse": {
         "date": "date",
         "cases": "number"
       }
     }
   },
   {
     "name": "countries",
     "url": "wikiraw:///Template:Interactive COVID-19 maps/data/World map data",
     "format": {"type": "topojson","feature": "countries"},
     "transform": [
       {
         "type": "geopath",
         "value": "data",
         "scale": 80,
         "center": [-180,125],
         "translate": [0,0],
         "projection": "equirectangular"
       },
       {
         "type": "lookup",
         "on": "population",
         "keys": ["id"],
         "onKey": "ISO3",
         "as": ["pop"],
         "default": {"Country": "" }
       },
       {
         "type": "lookup",
         "on": "highlights",
         "keys": ["id"],
         "onKey": "id",
         "as": ["zipped"],
         "default": {"v": null, "Country":"No data"}
       }
     ]
   }
   ],
 "signals": [
   {
     "name": "isDragging",
     "init": false,
     "streams": [
       {"type": "@handle:mousedown","expr": "true"},
       {"type": "mouseup","expr": "false"},
       {"type": "#confirmed-covid-map-per-capita:mouseout","expr":"false"},
       {"type": "@scrollArea:touchstart", "expr": "true"},
       {"type": "touchend", "expr": "false"}
     ]
   },
   {
     "name": "handlePosition",
     "init": 500,
     "streams": [
       {
         "type": "mousemove[isDragging]",
         "expr": "clamp(eventX(),0,width)"
       },
       {
         "type": "touchmove[isDragging]",
         "expr": "clamp(eventX(),0,width)"
       }
     ]
   },
   {
     "name": "scaledHandlePosition",
     "expr": "handlePosition",
     "scale": {"name": "dateScale","invert": true}
   },
   {
     "name": "currentDate",
     // WugBot! humandate
     "init": "May 16",
     "expr": "timeFormat('%d/%m',scaledHandlePosition)"
     /* %d = day, %b = month name (English in all wikis), %m = month number, %y = year. */
     /* Any order and characters between them is allowed. */
   },
   {
     "name": "dateStamp",
       // WugBot! computerdate
     "init": "05/16/20",
     "expr": "timeFormat('%m/%d/%y',scaledHandlePosition)"
   },
   {
     "name": "tooltipSignalPop",
     "init": {"expr": "{x: 0, y: 0, datum: {} }"}, 
     "streams": [
       {  
         "type": "@map:mouseover",    
         "expr": "{x: eventX(), y: eventY(), datum: eventItem().datum.pop}"
       },
       {  
         "type": "@map:mouseout",
         "expr": "{x: 0, y: 0, datum: {} }"
       }
     ] 
   },
   {
     "name": "tooltipSignalZipped",
     "init": {"expr": "{x: 0, y: 0, datum: {} }"}, 
     "streams": [
       {  
         "type": "@map:mouseover",    
         "expr": "{x: eventX(), y: eventY(), datum: eventItem().datum.zipped}"
       },
       {  
         "type": "@map:mouseout",
         "expr": "{x: 0, y: 0, datum: {} }"
       }
     ] 
   }
 ],
 "scales": [
   {
     "name": "dateScale",
     "type": "time",
     "domain": {
       "data": "globalByDate",
       "field":"date"
     },
     "range": "width"
   },
   {
     "name": "color",
     "type": "log",
     "domain": [
       1,
       1000],
     "domainMin": 1,
     "zero": false,
     "range":  ["#FFEDBC", "#f83600"]
   }
 ],
 "marks": [
   {
     "name": "map",
     "type": "path",
     "from": {"data": "countries"},
     "properties": {
       "enter": {
         "path": {"field": "layout_path"}
       },
       "update": {
         "fill": [
           {
             "test": "datum.zipped.v !== null",
             "scale": "color",
             "field": "zipped.v"
           },
           {"value": "white"}
         ]
       },
     "hover": {"fill": {"value": "#989898"} }
     }
   },
   {
     "name": "scrollArea",
     "type": "rule",
     "properties": {
       "enter": {
         "x": {"value": 0},
         "y": {"value": 40},
         "x2": {"value": 500},
         "stroke": {"value": "#edf1f7"},
         "strokeWidth": {"value": 16}
       }
     }
   },
   {
     "name": "scrollLine",
     "type": "rule",
     "properties": {
       "enter": {
         "x": {"value": 0},
         "y": {"value": 40},
         "x2": {"value": 500},
         "stroke": {"value": "#000"},
         "strokeWidth": {"value": 2}
       }
     }
   },
   {
     "name": "handle",
     "type": "symbol",
     "properties": {
       "enter": {
         "x": {"value": 200},
         "y": {"value": 40},
         "size": {"value": 154},
         "stroke": {"value": "#880"},
         "strokeWidth": {"value": 2.5}
       },
       "update": {
         "fill": {"value": "#fff"},
         "x": {"signal": "handlePosition"}
       },
       "hover": {"fill": {"value": "#f00"} }
     }
   },
   {
     "name": "dateLabel",
     "type": "text",
     "properties": {
       "enter": {
         "x": {"value": 0},
         "y": {"value": 25},
         "fontSize": {"value": 32},
         "fontWeight": {"value": "bold"},
         "fill": {"value": "steelblue"}
       },
       "update": {"text": {"signal": "currentDate"} }
     }
   },
   {
     "name": "HoverText",
     "type": "text",
     "properties": {
       "enter": {
         "x": {"value": 500 },
         "y": {"value": 10},  
         "align": {"value": "right"},
         "fontSize": {"value": 17},
         "fill": {"value": "black"}
       },
       "update": {
         "text": [
           {
             "test": "tooltipSignalZipped.datum.v === null",
             "template": "\u007b{tooltipSignalPop.datum.Country}\u007d (No data)"
           },
           {"template": "\u007b{tooltipSignalPop.datum.Country}\u007d \u007b{tooltipSignalZipped.datum.v}\u007d"}
         ]
       }
     }
   }
 ],
 "legends": [
   {
     "fill": "color",
     "title": "Cases per million",
     "offset": -300,
     "properties": {
       "gradient": {
         "stroke": {"value": "transparent"}
       },
       "title": {
         "fontSize": {"value": 14}
       },
       "legend": {
         "x": {"value": 0},
         "y": {"value": 180 }
       }
     }
   }
 ]

} </graph>

Desc-i.svg
Interactive map of confirmed COVID-19 cases per million people.

Click the play button in the top left to interact with the map.

On mobile devices you will need to use landscape mode and drag the slider at the top of the infographic.

This article lists the pages containing the chronology and epidemiology of SARS-CoV-2,[1] the virus which causes the coronavirus disease 2019 (COVID-19) and is responsible for the COVID-19 pandemic. The first human cases of COVID-19 were identified in Wuhan, China in December 2019. At this stage it is not possible to determine precisely how humans in China were initially infected with SARS-CoV-2.[2] Furthermore, some developments may become known or fully understood only in retrospect.

Timeline by month

Responses

Timeline by country

Case statistics

Cases in mainland China

International cases

References

  1. "Coronavirus". www.who.int (in English). Retrieved 27 January 2020.
  2. WHO. "Q&A on coronaviruses (COVID-19)". World Health Organization. Retrieved 6 April 2020.