Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 2.14 KB

README.md

File metadata and controls

65 lines (54 loc) · 2.14 KB

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