This is a practice project for learning d3.js.
I did this in a quick & dirty style in my 3-days self quarantine during the long weekend.
So please bear with me for lots of code are written in bad manner.
It's a static pure front-end page made with Angular + D3.js + rxjs.
(Because I don't want to spend any money for hosting the backend on cloud!)
I uploaded the page to firebase hosting.
It has four parts:
(1) a control panel which has a checkbox to let user select which kind of data
they want to see on the world map and info card and
a slider to control the time of data showed on line chart and world map
a play button to play the whole history
(2) a set of info cards shows the day of country users selected
(3) a world map(named trend-chart in my code) which has tooltip.
Users can click on the country to select it
(4) a line chart
(1) Download the files from repo by git.
(2) Use your terminal and change to the directory of the this project
(3) 'npm install'
(4) 'ng serve'
(5) check it on localhost:4200
I plan to complete rwd for all components to make it fit for small screen.
Also, I will refactor the code to make it cleaner.
(Maybe next long weekend in May)
(1) source of world map data
(2) source of ncov19
(3) world map
(4) responsive multi-line chart
(5) facade pattern of dashboard service
(6) info card grid css
MIT