Giter VIP home page Giter VIP logo

ncov19's Introduction

D3js Ncov19 Dashboard

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.

image

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

Usage

(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

Further update

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)

Credit

(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

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.