Home

Awesome

covid-charts

Interactive charts with the number of Coronavirus confirmed cases, deaths, and recovered cases for your country.

example

Data from pomber/covid19

install

with npm

npm i covid-charts
import createChart from "covid-charts";

const chart = createChart(document.body, {
  country: "France",
  width: 400,
  height: 300
});

with CDN via unpkg

<script src="https://unpkg.com/covid-charts/index.js"></script>
<script>
  const chart = createChart(document.body, {
    country: "France",
    width: 400,
    height: 300
  });
</script>

api

createChart params:

createChart return object with next methods:

acknowledgements

Thanks @pomber for the data.

Special thanks to tradingview for supa-dupa charts.