@tbnritzdoge/coronagraph
v1.3.1
Published
Graphing library for the coronavirus.
Downloads
6
Maintainers
Readme
COVID-19 Graphs
Endpoints
- graphC(countryname, type(log, linear))
- mob(country, province(not required))
- pie(country)
- graphCompare([country1, country2], active/cases/recovered/deaths, type(log, linear))
All endpoints return the object
{ url: `image url for chart`, name: `name of countries`}
Usage
const { CoronaGraphsClient } = require(`@tbnritzdoge/coronagraph`)
const client = new CoronaGraphsClient();
const { url } = await client.graphC(`north korea`);