Covid-Graph
Welcome to Covid-Graph
cURL
Simply curl the "/graph" path with any of the optional parameters.
Options
- days: Number of days before the current day to start collecting data (x axis)
- height: Number of rows to allow for y axis
- country: Target country name or code
- disableCases: Remove total case data from results
- disableRecovered: Remove recovered case data from results
- disableDeaths: Remove deaths data from results
- disableBox: Remove enclosing graph box for simpler display
Examples
- curl "https://covid-graph.cgsimmons.dev/graph"
- curl "https://covid-graph.cgsimmons.dev/graph?days=10&height=10&disableCases=true&disableRecovered=true&country=Japan"
CLI
Covid-Graph is built in node and available on github. Within the codebase is a covid-graph-cli command that can be used to generate the graph data locally. Visit the repo on github for more info.