diff --git a/datapackage.json b/datapackage.json index fe60bf3..c14a081 100644 --- a/datapackage.json +++ b/datapackage.json @@ -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" } ] } \ No newline at end of file diff --git a/process.py b/process.py index 7b0afca..d13de1e 100644 --- a/process.py +++ b/process.py @@ -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" + } } ] ),