→ Have a look at the compiled visuals here.
To run the visualization script you need Python (as of versions 3.6+), of course, and probably want to prepare the environment as follows:
-
create virtual environment (optional)
$ python -m venv ./.venv
$ source ./.venv/bin/activate
-
install dependencies
$ pip install numpy matplotlib pandas
$ pip install adjustText
# (optional) -
install GUI visiualization backend (optional) To enable matplotlib to use Tk backend use a command appropriate for your system, e.g. one of these:
$ sudo apt-get install python3-tk
# (Debian'ish)$ sudo dnf install python3-tkinter
# (Fedora-flavoured)$ sudo pacman -S tk
# (Arch)
-
clone JHUCSSE repository
$ git clone --depth=1 -b web-data https://github.com/CSSEGISandData/COVID-19.git
-
clone CovidData repository
$ git clone --depth=1 https://github.com/coviddata/coviddata.git
-
retrieve GeoNames CountryDataGN database
$ wget https://download.geonames.org/export/dump/countryInfo.txt
-
show command line options help
$ python3 ./covid2xa.py -h
-
show all plots and create SVG files
$ python ./covid2xa.py -a
-
create all plots as SVG files only
$ python ./covid2xa.py -aX