/GraphicChartCovid

graphic with covid 19 datas of Brazil in realtime

Primary LanguageJavaScript

📈COVID CHART📈

📓project📓

interface interface


write data more content


responsive responsive


filter topic selected item

📎extensions📎

on <head> put:

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>

that will import the extension of the graphic (Chart) from cdn cloud, without installation

🤔 how it works? 🤔

he get the data from a API with:

const res = await fetch(`https://covid19-brazil-api.now.sh/api/report/v1`)
    .then(res=>res.json())
const data = await res.data

and stores in specific arrays your specific datas