All Projects → juancri → covid19-animation-generator

juancri / covid19-animation-generator

Licence: MIT license
Generates an animation of COVID-19 data

Programming Languages

typescript
32286 projects
Makefile
30231 projects

Projects that are alternatives of or similar to covid19-animation-generator

coviddata
Daily COVID-19 statistics by country, region, and city
Stars: ✭ 49 (+48.48%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, coronavirus-tracker, covid-19, covid
COVID19
A web app to display the live graphical state-wise reported corona cases in India so far. It also shows the latest news for COVID-19. Stay Home, Stay Safe!
Stars: ✭ 122 (+269.7%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, coronavirus-tracker, covid-19
COVID-19-DETECTION
Detect Covid-19 with Chest X-Ray Data
Stars: ✭ 43 (+30.3%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, covid-19, covid
Covid19radar
Open Source / i18n / iOS Android Cross Platform Contact Tracing App by exposure notification framework Xamarin App and Server Side Code
Stars: ✭ 35 (+6.06%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19, covid
align covid
Coronavirus time series aligned by number of cases, not date.
Stars: ✭ 22 (-33.33%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, coronavirus-tracker, covid
covid19-api
Covid19 Data API (JSON) - LIVE
Stars: ✭ 20 (-39.39%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19, covid
covid19-data-greece
Datasets and analysis of Novel Coronavirus (COVID-19) outbreak in Greece
Stars: ✭ 16 (-51.52%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, covid-19
covid19-timeseries
Covid19 timeseries data store
Stars: ✭ 38 (+15.15%)
Mutual labels:  coronavirus, coronavirus-analysis, covid-19, covid
Api
API for Current cases and more stuff about COVID-19 and Influenza
Stars: ✭ 2,323 (+6939.39%)
Mutual labels:  coronavirus, coronavirus-tracking, covid-19, covid
Corona Cli
🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). To chat: https://twitter.com/MrAhmadAwais/
Stars: ✭ 1,812 (+5390.91%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, covid-19
coronainfobd
Real-time corona-virus tracker of Bangladesh 🇧🇩 which includes latest updates, data visualization, public awareness from WHO and some advice to aware people. 🥰❤
Stars: ✭ 46 (+39.39%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, covid-19
covidtrackerapiwrapper
CovidSharp is a crossplatform C# API wrapper for the Coronavirus tracking API (https://github.com/ExpDev07/coronavirus-tracker-api)
Stars: ✭ 11 (-66.67%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19
coronavirusrd
Web app to show information about the current cases of COVID 19 in Dominican Republic
Stars: ✭ 13 (-60.61%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19
covid-19
Open source web map for tracking COVID-19 global cases
Stars: ✭ 23 (-30.3%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19
CoronaVirusOutbreakAPI
A tiny and small program to crawler and analyze outbreak of COVID-19 in world and every country using PHP.
Stars: ✭ 20 (-39.39%)
Mutual labels:  coronavirus, coronavirus-tracking, covid-19, covid
coronavirus
covid-19 data in J
Stars: ✭ 15 (-54.55%)
Mutual labels:  coronavirus, coronavirus-tracking, covid-19, covid
covid-19
An app made with Flutter to track COVID-19 case counts.
Stars: ✭ 47 (+42.42%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19
covid19-visualized
COVID-19 World update with data Visualization (Include Indonesia cases)
Stars: ✭ 23 (-30.3%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-tracker, covid-19
CoronaVirusDatabase
A repository for analyzing references and database of "gisanddata.maps.arcgis.com" website for Corona Virus.
Stars: ✭ 38 (+15.15%)
Mutual labels:  coronavirus, coronavirus-tracking, coronavirus-analysis, covid-19
coronavirus-wallpaper
🦠 Application that allows you to update your wallpaper with the COVID-19 stats in your area
Stars: ✭ 12 (-63.64%)
Mutual labels:  coronavirus, coronavirus-tracking, covid-19

COVID-19 Animation Generator

Node.js CI

Generates an animation based on COVID-19 daily data.

Sample

About

Requirements

  • Node 16.x
  • GNU make

Initialize

  • Run: npm install

Build

  • Run: make

Running

node dist/main

The data is downloaded automatically

Parameters

All parameters are optional.

  • --help: Displays a help message and exits.
  • --source: Sets the data source. Default: global. See the contents of config.json, section dataSources, for possible values.
  • --filter: Filters the series configurations from the datasource using its code. Multiple codes can be included, separated by comma.
  • --schema: Sets the color schema. Default: dark. Possible values:
    • dark: Dark theme
  • --days: Number of days for which the animation will be generated. Default: 30. Use 0 to plot all days.
  • --frames: Number of frames per day. Default: 30.
  • --extraFrames: Number of extra frames for the last image. Default: 300.
  • --horizontalAxisLabel: Horizontal axis label. Default: "total confirmed cases (log)".
  • --verticalAxisLabel: Vertical axis label. Default: "new confirmed cases (log, last week)".
  • --zoomEasing: Easing function for the zoom effect. Default: easeInOutCubic.
  • --timebarEasing: Easing function for the timebar. Default: linear.
  • --dateFormat: Sets the date format based on the Luxon tokens. Default: yyyy-MM-dd.
  • --drawMarkers: Draws series markers over the scale. Disabled by default.
  • --skipZoom: Skips the zoom effect. Enabled by default.
  • --hideWatermark: Hides the watermark. Enabled by default.
  • --seriesLineWidth: Series line width. Default: 3.
  • --horizontalMin: Horizontal scale minimum. Default: dynamic.
  • --horizontalMax: Horizontal scale maximum. Default: dynamic.
  • --verticalMin: Vertical scale minimum. Default: dynamic.
  • --verticalMax: Vertical scale maximum. Default: dynamic.
  • --scale: Scale. Default: log. Possible values:
    • log: Logaritmic (log10)
    • linear: Linear scale
    • linear-center: Linear scale for stacked area center
    • linear-avg7: Liner scale with 7 days change average
  • --scaleDateFormat: Date format for the scale labels. Applies only for linear scale. Default: MM/dd.
  • --scaleNumberFormat: Number format for the scale labels. Applies only for linear scale. Default: suffix. Possible values:
    • suffix: 1K for 1,000, 2K for 2,000, etc
    • plain: Plain number
    • spanish: Number in Spanish format (#.###)
  • --stackedAreaNumberFormat: Number format for the stacked area number label. Default: plain. Possible values:
    • plain: Plain number
    • english: Number in English format (#,###)
    • spanish: Number in Spanish format (#.###)
  • --stackedAreaIncludePercentage: Include percentage in the stacked area label. Default: true. Possible values:
    • true: Display the percentage
    • false: Do not display the percentage
  • --horizontalJump: Distance between scale labels (horizontal axis).
  • --verticalJump: Distance between scale labels (vertical axis).
  • --horizontalLines: Horizontal lines with format numericvalue:label (example: 10:mylabel, multiple lines separated by comma)
  • --verticalLines: Vertical lines with format numericvalue:label (example: 10:mylabel, multiple lines separated by comma)
  • --singleDynamicScale: Use single axis to calculate the dynamic scale.
  • --type: Chart type. Default: line. Possible values:
    • line: Line chart
    • stacked-area: Stacked area
  • --outputDirectory: Output directory. If the value starts with /, it will be read as an absolute path. Otherwise, it will be relative to the project root. Default value: output.
  • --debug: Prints debugging information to the console and the output images.
  • --sample: Overrides frame configuration to output only one frame as a sample.
  • --useAreaColor: Uses areaColor instead of color to draw line graphs.

Examples

  • node dist/main
  • node dist/main --source global
  • node dist/main --layout square
  • node dist/main --source us --layout vertical
  • node dist/main --source us --layout vertical --frames 20

Output

The generated images will be in the output directory

Generate animation

You can generate an animation (60 fps). Requires ffmpeg. Run:

npm run video

The video will be here: output/animation.mp4

If you used --outputDirectory to generate the images, you can pass the directory path to the video script as:

npm run video -- /tmp/some/temporary/directory
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].