Code Monkey home page Code Monkey logo

time-series-visualizer's Introduction

Time-series-visualizer

Time series visualizer is a flexible extension that provides filling world map by country from csv or json file.

You can know data value through shades of color ๐Ÿ”ฅ

For example, in the below gif, simulate data from the countries to view the COVID-19 recover cases of the world from real data. The larger the cases are, the darker the color is

render_gif

Also provide an simple convert script from csv to json. (Required input format)

Quickstart

Only support json format for the release Change the variables in this file

date_key = "Date column name"
country_key = "Country column name"
value_key = "Value column name"

Run command to export to json format

$ python csv2json.py --csv <path-to-csv>

where:

  • <path-to-csv>: path to the input csv file

Example csv:

Date Country Value
ddmmyyyy Vietnam x

Download lastest build version from here

Copy <json-file> to visualizer data folder

./
โ”œโ”€ tools/
โ”‚  โ”œโ”€ input.csv     
โ”œโ”€ release/
โ”‚  โ”œโ”€ visualizer_data/
โ”‚  โ”‚  โ”œโ”€ data.json
โ”œโ”€ โ”‚  ...
โ”‚  โ”œโ”€ visualizer.exe   

Execute visualizer.exe to render worldmap

Special Thanks

I would like to express my gratitude to @nghuycode for his support (Nguyen Gia Huy - HCMUS, APCS2018)

time-series-visualizer's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.