Browse Source

[views][s]: added the graph containing confirmed cases in the key countries - refs #19

master
anuveyatsu 4 years ago
parent
commit
376bec9cba
2 changed files with 32 additions and 1 deletions
  1. +22
    -1
      datapackage.json
  2. +10
    -0
      process.py

+ 22
- 1
datapackage.json View File

@ -1,7 +1,7 @@
{
"bytes": 979273,
"count_of_rows": 25296,
"hash": "6c8d26b210a9141fbcd24652a104fae1",
"hash": "934fb9bb820482546b0c1699c8ec73e5",
"name": "covid-19",
"profile": "data-package",
"resources": [
@ -273,6 +273,27 @@
},
"specType": "simple",
"title": "Total world to date"
},
{
"resources": [
"key-countries-pivoted"
],
"spec": {
"group": "Date",
"series": [
"China",
"US",
"United_Kingdom",
"Italy",
"France",
"Germany",
"Spain",
"Iran"
],
"type": "line"
},
"specType": "simple",
"title": "Number of confirmed cases in key countries"
}
]
}

+ 10
- 0
process.py View File

@ -288,6 +288,16 @@ Flow(
"series": ["Confirmed", "Recovered", "Deaths"],
"type": "line"
}
},
{
"title": "Number of confirmed cases in key countries",
"resources": ["key-countries-pivoted"],
"specType": "simple",
"spec": {
"group": "Date",
"series": ["China", "US", "United_Kingdom", "Italy", "France", "Germany", "Spain", "Iran"],
"type": "line"
}
}
]
),


Loading…
Cancel
Save