zachwinter / covid-usa Goto Github PK
View Code? Open in Web Editor NEWAn interactive timeseries built with Vue, D3 and the HTML5 <canvas>
Home Page: https://covid-usa.herokuapp.com/
An interactive timeseries built with Vue, D3 and the HTML5 <canvas>
Home Page: https://covid-usa.herokuapp.com/
The data endpoint is consistently taking ~30-60 seconds to resolve, and returns a 503 code when it does, with the heroku application error page as content: https://www.herokucdn.com/error-pages/application-error.html
Given the timeout before error, I suspect it's an error somewhere in the buildData()
function, which causes data = await buildData()
to equal a never-resolving promise, which causes app.get('/api/data', (req, res) => res.json(data))
to hang.
I can't be sure as I can't see the logs, but I'd be more than happy to open a PR if you can make the logs available!
Hey, awesome visualization!
Out of curiosity, are you happy doing daily manual updates or would you like to move toward automating them? This could probably be done with heroku scheduler, github actions (assuming that you have heroku deploy on github push), or by modifying the server to fetch and store the assets on the local filesystem (and then update the data directory on a schedule via something like node-cron).
When looking at population %ages, I noticed that New York City seemed very high around 4/17. It seems that the population is being sourced from Manhattan (36061) while the case count from CSSEGISandData represents all 5 boroughs (CSSEGISandData/COVID-19#1970). I believe USAFacts has breakout data, or the population JSON could just be modified.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.