An interactive horizontal bar chart with negative values implemented with D3.js version 4.12.2.
-
Clone or download the repository.
-
Run a local web server1 so that the external data file can be loaded.
-
View the bar chart in your web browser.
1 If Python is installed on the computer, execute one of the following to run a web server locally on port 8000:
python -m SimpleHTTPServer 8000
for Python 2.xpython -m http.server 8000
for Python 3.x
The CIA World Factbook. Website visited on 15 February 2018.