Skip to content

Files

Latest commit

author
Github Actions CI
Nov 28, 2021
297d60f · Nov 28, 2021

History

History
This branch is 9189 commits behind reichlab/covid19-forecast-hub:master.

visualization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 2, 2020
Nov 28, 2021
Apr 7, 2021
Jul 7, 2020
May 29, 2020
Jul 21, 2020
May 7, 2020
Jun 30, 2021
Aug 11, 2020
Jun 26, 2020
May 29, 2020
Jul 17, 2020
Jan 12, 2021

Interactive Visualization

chart

About

The interactive visualization was based on d3-foresight a D3.js package built by the Reich Lab. Some custom package configurations were made and the adapted d3-foresight package is called covid-d3-foresight.

Dependencies

These are automatically installed when you run the one time setup

Python Package dependencies

Step 0: One time Setup on Mac

  1. Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install python3 brew install python3
  3. Install node brew install node
  4. Install yarn brew install yarn
  5. Run one-time setup
cd ./visualization
bash ./one-time-setup.sh

Step 1: Building locally

cd ./visualization
bash ./0-init-vis.sh

# if on mac
bash ./2-mac-build-vis.sh

# if on linux
bash ./1-patch-vis.sh
bash ./2-build-vis.sh

Step 2: Viewing locally

If you have Python 2.x:

cd ./visualization/vis-master/dist
python -m SimpleHTTPServer

If you have Python 3.x:

cd ./visualization/vis-master/dist
python3 -m http.server